home *** CD-ROM | disk | FTP | other *** search
/ A.C.E. 1 / ACE CD 1.iso / files / spectrum / specuti1.lha / Z80_Tut_2.snapshot < prev    next >
Unknown  |  1994-06-22  |  48.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3f 58 27 9b 36 21 17 46 | 00 78 5c 00 17 00 00 3a |?X'.6!.F|.x\....:|
|00000010| 5c d4 03 ff 00 82 ff e6 | ff 01 07 00 00 00 00 00 |\.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 00 70 40 10 01 11 00 38 | 00 40 40 04 40 00 e0 06 |.p@....8|.@@.@...|
|00001210| 20 06 0e 7c 00 00 00 00 | 00 00 00 00 00 00 00 00 | ..|....|........|
|00001220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001300| 00 48 03 92 01 13 00 4c | 00 8f 20 04 4e 59 03 88 |.H.....L|.. .NY..|
|00001310| 70 02 11 40 00 00 00 00 | 00 00 00 00 00 00 00 00 |p..@....|........|
|00001320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001400| 00 44 44 14 00 a1 00 54 | 00 90 20 07 c1 64 e4 5c |.DD....T|.. ..d.\|
|00001410| 20 04 0e 78 00 00 00 00 | 00 00 00 00 00 00 00 00 | ..x....|........|
|00001420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001500| 00 44 43 98 00 a1 00 64 | 00 90 20 04 4f 44 14 48 |.DC....d|.. .OD.H|
|00001510| 20 00 11 04 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00001520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001600| 00 48 40 54 00 41 00 44 | 00 90 20 04 51 45 14 48 |.H@T.A.D|.. .QE.H|
|00001610| 28 00 11 44 00 00 00 00 | 00 00 00 00 00 00 00 00 |(..D....|........|
|00001620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001680| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001700| 00 70 47 92 00 43 84 38 | 00 4f 40 04 4f 44 e3 88 |.pG..C.8|.O@.OD..|
|00001710| 10 00 0e 38 00 00 00 00 | 00 00 00 00 00 00 00 00 |...8....|........|
|00001720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001800| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001810| 00 00 00 00 00 00 00 00 | 00 00 00 38 38 38 38 38 |........|...88888|
|00001820| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001830| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001840| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001850| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001860| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001870| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001880| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001890| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|000018a0| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|000018b0| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|000018c0| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|000018d0| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|000018e0| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|000018f0| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001900| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001910| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001920| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001930| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001940| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001950| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001960| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001970| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001980| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001990| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|000019a0| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|000019b0| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|000019c0| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|000019d0| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|000019e0| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|000019f0| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001a00| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001a10| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001a20| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001a30| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001a40| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001a50| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001a60| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001a70| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001a80| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001a90| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001aa0| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001ab0| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001ac0| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001ad0| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001ae0| 38 38 38 38 38 38 38 38 | 38 38 38 38 38 38 38 38 |88888888|88888888|
|00001af0| 38 38 38 38 38 38 38 38 | 38 38 38 8f 8f 8f 8f 8f |88888888|888.....|
|00001b00| 8f 8f 8f 8f 8f 8f 8f 8f | 8f 8f 8f 8f 8f 8f 8f 8f |........|........|
|00001b10| 8f 8f 8f 8f 8f 8f 8f 8f | 8f 8f 8f 00 00 00 00 00 |........|........|
|00001b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c10| 00 00 00 00 00 00 00 00 | 00 00 00 ff 00 1d fd ff |........|........|
|00001c20| 00 22 0d 0d 23 05 00 00 | 00 00 00 01 00 06 00 0b |."..#...|........|
|00001c30| 00 01 00 01 00 06 00 10 | 00 00 00 00 00 00 00 00 |........|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 3c 40 00 ff cc 01 | fc ff 00 00 00 00 00 ff |..<@....|........|
|00001c60| fe ff 01 38 00 00 05 5d | 00 00 f0 5c f0 5c 05 5d |...8...]|...\.\.]|
|00001c70| 14 5d 04 5d 06 5d 0d 5d | 13 5d 00 00 15 5d 15 5d |.].].].]|.]...].]|
|00001c80| 15 5d 2d 92 5c 10 02 00 | 00 00 00 00 00 00 00 b6 |.]-.\...|........|
|00001c90| 1a 00 00 6e 07 00 58 ff | 00 00 21 00 5b 21 17 00 |...n..X.|..!.[!..|
|00001ca0| 40 e0 50 21 18 21 17 01 | 38 00 38 00 00 00 00 00 |@.P!.!..|8.8.....|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 50 ff ff ff |........|....P...|
|00001cd0| ff 00 f0 01 21 09 5d cd | 99 1e 22 ba 5c c9 0c 00 |....!.].|..".\...|
|00001ce0| 01 00 00 00 50 80 07 5d | ff ff ff ff ff ff ff ff |....P..]|........|
|00001cf0| ff ff ff ff 42 ff ff ff | ff 03 00 00 00 00 ff ff |....B...|........|
|00001d00| ff 03 00 9b 00 5f ff ff | ff ff 01 f4 09 a8 10 4b |....._..|.......K|
|00001d10| f4 09 c4 15 53 81 0f c4 | 15 52 f4 09 c4 15 50 80 |....S...|.R....P.|
|00001d20| 80 f9 c0 34 36 38 34 38 | 0e 00 00 00 b7 00 0d 80 |...46848|........|
|00001d30| 00 00 00 b7 00 00 0a 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e10| 00 00 00 00 00 00 00 00 | 00 00 00 06 5e 2c 5e 08 |........|....^,^.|
|00001e20| 87 2d 5e 31 5e 3e 5e 45 | 5e 56 5e 4f 5e 5d 5e 6a |.-^1^>^E|^V^O^]^j|
|00001e30| 5e 71 5e 7b 5e 82 5e 89 | 5e 96 5e 9d 5e a7 5e b1 |^q^{^.^.|^.^.^.^.|
|00001e40| 5e bb 5e c2 5e d8 5e 00 | 00 65 89 01 00 df 5e 00 |^.^.^.^.|.e....^.|
|00001e50| 42 61 00 d6 63 00 47 64 | 01 00 cd 64 02 a7 66 01 |Ba..c.Gd|...d..f.|
|00001e60| 00 2f 67 00 e4 69 00 86 | 6c 01 00 2c 6d 02 fc 6f |./g..i..|l..,m..o|
|00001e70| 01 00 b0 70 02 48 71 01 | 00 e7 71 00 d1 74 00 a3 |...p.Hq.|..q..t..|
|00001e80| 77 00 c0 78 01 00 cd 79 | 02 00 7e 01 00 8f 7e 00 |w..x...y|..~...~.|
|00001e90| 9a 81 00 5f 82 01 00 77 | 83 02 1a 85 01 00 ba 85 |..._...w|........|
|00001ea0| 02 68 86 01 00 97 8a 00 | e5 8c 00 5b 8f 00 0d 90 |.h......|...[....|
|00001eb0| 01 00 ea 91 02 68 93 01 | 00 0e 94 00 5f 96 00 63 |.....h..|...._..c|
|00001ec0| 98 01 00 b6 9a 00 eb 9d | 06 8b a5 01 00 97 9f 00 |........|........|
|00001ed0| a1 a1 00 b4 a3 01 00 bc | a4 06 15 9f 01 00 17 a6 |........|........|
|00001ee0| 00 90 a8 00 62 aa 00 0c | ac 00 02 ae 00 8b af 00 |....b...|........|
|00001ef0| 8e b1 01 00 9c b2 02 5a | b4 01 20 20 20 20 20 20 |.......Z|.. |
|00001f00| 20 20 20 20 20 20 20 20 | 20 20 20 20 4a 55 4d 50 | | JUMP|
|00001f10| 53 a0 a0 20 54 68 65 20 | 20 61 73 70 65 63 74 20 |S.. The | aspect |
|00001f20| 20 6f 66 20 20 61 20 63 | 6f 6d 70 75 74 65 72 20 | of a c|omputer |
|00001f30| 74 68 61 74 20 6d 61 6b | 65 73 20 69 74 6d 6f 72 |that mak|es itmor|
|00001f40| 65 20 74 68 61 6e 20 61 | 20 63 61 6c 63 75 6c 61 |e than a| calcula|
|00001f50| 74 6f 72 20 69 73 20 20 | 69 74 73 20 61 62 69 6c |tor is |its abil|
|00001f60| 69 74 79 20 20 74 6f 63 | 68 61 6e 67 65 20 20 69 |ity toc|hange i|
|00001f70| 74 73 20 20 73 65 71 75 | 65 6e 63 65 20 6f 66 20 |ts sequ|ence of |
|00001f80| 6f 70 65 72 61 74 69 6f | 6e 73 20 20 61 73 20 20 |operatio|ns as |
|00001f90| 61 72 65 73 75 6c 74 20 | 20 6f 66 20 20 65 61 72 |aresult | of ear|
|00001fa0| 6c 69 65 72 20 20 69 6e | 73 74 72 75 63 74 69 6f |lier in|structio|
|00001fb0| 6e 73 2e 20 20 57 69 74 | 68 69 6e 74 68 65 20 20 |ns. Wit|hinthe |
|00001fc0| 5a 38 30 20 20 74 68 65 | 72 65 20 20 69 73 20 20 |Z80 the|re is |
|00001fd0| 61 20 63 6f 75 6e 74 65 | 72 20 20 63 61 6c 6c 65 |a counte|r calle|
|00001fe0| 64 20 74 68 65 50 72 6f | 67 72 61 6d 20 43 6f 75 |d thePro|gram Cou|
|00001ff0| 6e 74 65 72 20 6f 72 20 | 50 43 2e 20 54 68 69 73 |nter or |PC. This|
|00002000| 20 63 6f 75 6e 74 65 72 | 20 20 6b 65 65 70 73 74 | counter| keepst|
|00002010| 72 61 63 6b 20 6f 66 20 | 77 68 69 63 68 20 20 69 |rack of |which i|
|00002020| 6e 73 74 72 75 63 74 69 | 6f 6e 20 20 74 68 65 20 |nstructi|on the |
|00002030| 70 72 6f 63 65 73 73 6f | 72 69 73 20 20 74 6f 20 |processo|ris to |
|00002040| 20 70 65 72 66 6f 72 6d | 20 20 6e 65 78 74 2e 20 | perform| next. |
|00002050| 20 42 79 20 20 6d 6f 64 | 69 66 79 69 6e 67 20 20 | By mod|ifying |
|00002060| 69 74 73 63 6f 6e 74 65 | 6e 74 73 2c 20 74 68 65 |itsconte|nts, the|
|00002070| 20 20 70 72 6f 63 65 73 | 73 6f 72 20 63 61 6e 20 | proces|sor can |
|00002080| 62 65 20 20 6a 75 6d 70 | 65 64 20 74 6f 61 6e 79 |be jump|ed toany|
|00002090| 20 69 6e 73 74 72 75 63 | 74 69 6f 6e 20 69 6e 20 | instruc|tion in |
|000020a0| 6d 65 6d 6f 72 79 2e a0 | a0 20 54 68 65 20 73 69 |memory..|. The si|
|000020b0| 6d 70 6c 65 73 74 20 20 | 6a 75 6d 70 20 69 73 20 |mplest |jump is |
|000020c0| 4a 50 20 6e 6e 2c 20 20 | 77 68 65 72 65 20 6e 6e |JP nn, |where nn|
|000020d0| 20 69 73 74 68 65 20 20 | 61 64 64 72 65 73 73 20 | isthe |address |
|000020e0| 20 74 6f 20 20 77 68 69 | 63 68 20 74 68 65 20 20 | to whi|ch the |
|000020f0| 70 72 6f 67 72 61 6d 20 | 69 73 20 74 6f 6a 75 6d |program |is tojum|
|00002100| 70 2e 20 54 68 69 73 20 | 69 73 20 20 61 6e 20 20 |p. This |is an |
|00002110| 75 6e 63 6f 6e 64 69 74 | 69 6f 6e 61 6c 20 6a 75 |uncondit|ional ju|
|00002120| 6d 70 2c 20 74 68 65 50 | 72 6f 67 72 61 6d 20 20 |mp, theP|rogram |
|00002130| 43 6f 75 6e 74 65 72 20 | 20 61 6c 77 61 79 73 20 |Counter | always |
|00002140| 20 6a 75 6d 70 69 6e 67 | 20 20 74 6f 20 20 74 68 | jumping| to th|
|00002150| 65 61 64 64 72 65 73 73 | 20 6e 6e 2e a3 20 54 68 |eaddress| nn.. Th|
|00002160| 65 20 20 20 20 6d 6f 72 | 65 20 20 20 20 70 6f 77 |e mor|e pow|
|00002170| 65 72 66 75 6c 20 20 20 | 6a 75 6d 70 20 20 20 69 |erful |jump i|
|00002180| 73 20 20 20 74 68 65 63 | 6f 6e 64 69 74 69 6f 6e |s thec|ondition|
|00002190| 61 6c 20 6a 75 6d 70 2e | 20 20 54 68 65 20 70 72 |al jump.| The pr|
|000021a0| 6f 63 65 73 73 6f 72 20 | 74 65 73 74 73 20 74 68 |ocessor |tests th|
|000021b0| 65 73 74 61 74 65 20 6f | 66 20 61 20 66 6c 61 67 |estate o|f a flag|
|000021c0| 2c 20 20 62 65 66 6f 72 | 65 20 65 69 74 68 65 72 |, befor|e either|
|000021d0| 20 6a 75 6d 70 69 6e 67 | 20 6f 72 63 6f 6e 74 69 | jumping| orconti|
|000021e0| 6e 75 69 6e 67 20 69 6e | 20 20 73 65 71 75 65 6e |nuing in| sequen|
|000021f0| 63 65 2e a0 a0 20 54 68 | 65 20 20 20 63 6f 6e 64 |ce... Th|e cond|
|00002200| 69 74 69 6f 6e 61 6c 20 | 20 20 6a 75 6d 70 73 20 |itional | jumps |
|00002210| 20 69 6e 76 6f 6c 76 69 | 6e 67 20 20 74 68 65 63 | involvi|ng thec|
|00002220| 61 72 72 79 20 61 6e 64 | 20 7a 65 72 6f 20 66 6c |arry and| zero fl|
|00002230| 61 67 73 20 61 72 65 3a | 2d a0 a0 4a 50 20 4e 43 |ags are:|-..JP NC|
|00002240| 2c 6e 6e 20 20 20 20 6a | 75 6d 70 20 69 66 20 63 |,nn j|ump if c|
|00002250| 61 72 72 79 20 66 6c 61 | 67 20 6e 6f 74 20 73 65 |arry fla|g not se|
|00002260| 74 a0 4a 50 20 43 2c 6e | 6e 20 20 20 20 20 6a 75 |t.JP C,n|n ju|
|00002270| 6d 70 20 69 66 20 63 61 | 72 72 79 20 66 6c 61 67 |mp if ca|rry flag|
|00002280| 20 73 65 74 a0 4a 50 20 | 4e 5a 2c 6e 6e 20 20 20 | set.JP |NZ,nn |
|00002290| 20 6a 75 6d 70 20 69 66 | 20 7a 65 72 6f 20 20 66 | jump if| zero f|
|000022a0| 6c 61 67 20 6e 6f 74 20 | 73 65 74 a0 4a 50 20 5a |lag not |set.JP Z|
|000022b0| 2c 6e 6e 20 20 20 20 20 | 6a 75 6d 70 20 69 66 20 |,nn |jump if |
|000022c0| 7a 65 72 6f 20 20 66 6c | 61 67 20 73 65 74 a0 a0 |zero fl|ag set..|
|000022d0| 20 49 6e 64 69 72 65 63 | 74 20 6a 75 6d 70 73 20 | Indirec|t jumps |
|000022e0| 61 72 65 20 20 61 6c 73 | 6f 20 61 76 61 69 6c 61 |are als|o availa|
|000022f0| 62 6c 65 20 6f 6e 20 74 | 68 65 5a 38 30 20 20 20 |ble on t|heZ80 |
|00002300| 75 73 69 6e 67 20 20 74 | 68 65 20 20 48 4c 20 20 |using t|he HL |
|00002310| 20 72 65 67 69 73 74 65 | 72 20 20 70 61 69 72 2e | registe|r pair.|
|00002320| 20 54 68 65 69 6e 73 74 | 72 75 63 74 69 6f 6e 20 | Theinst|ruction |
|00002330| 20 20 4a 50 20 28 48 4c | 29 20 20 6c 6f 61 64 73 | JP (HL|) loads|
|00002340| 20 20 74 68 65 20 20 70 | 72 6f 67 72 61 6d 63 6f | the p|rogramco|
|00002350| 75 6e 74 65 72 20 20 20 | 20 77 69 74 68 20 20 74 |unter | with t|
|00002360| 68 65 20 20 63 6f 6e 74 | 65 6e 74 73 20 20 6f 66 |he cont|ents of|
|00002370| 20 74 68 65 20 20 48 4c | 72 65 67 69 73 74 65 72 | the HL|register|
|00002380| 2e 20 20 54 68 75 73 20 | 20 20 74 68 65 20 20 61 |. Thus | the a|
|00002390| 64 64 72 65 73 73 20 6f | 66 20 74 68 65 20 6e 65 |ddress o|f the ne|
|000023a0| 78 74 69 6e 73 74 72 75 | 63 74 69 6f 6e 20 20 74 |xtinstru|ction t|
|000023b0| 6f 20 62 65 20 70 65 72 | 66 6f 72 6d 65 64 20 20 |o be per|formed |
|000023c0| 20 69 73 20 20 20 20 65 | 71 75 61 6c 20 74 6f 20 | is e|qual to |
|000023d0| 74 68 65 20 63 6f 6e 74 | 65 6e 74 73 20 6f 66 20 |the cont|ents of |
|000023e0| 74 68 65 20 48 4c 20 72 | 65 67 69 73 74 65 72 2e |the HL r|egister.|
|000023f0| a3 53 69 6e 63 65 20 20 | 20 74 68 65 20 20 63 6f |.Since | the co|
|00002400| 6e 74 65 6e 74 73 20 6f | 66 20 74 68 65 20 20 48 |ntents o|f the H|
|00002410| 4c 20 20 72 65 67 69 73 | 74 65 72 70 61 69 72 20 |L regis|terpair |
|00002420| 63 61 6e 20 62 65 20 74 | 68 65 20 72 65 73 75 6c |can be t|he resul|
|00002430| 74 20 6f 66 20 73 6f 6d | 65 20 63 61 6c 63 75 6c |t of som|e calcul|
|00002440| 61 74 69 6f 6e 74 68 65 | 20 6a 75 6d 70 20 63 61 |ationthe| jump ca|
|00002450| 6e 20 62 65 20 63 6f 6e | 64 69 74 69 6f 6e 61 6c |n be con|ditional|
|00002460| 2e a3 20 53 75 6d 6d 61 | 72 79 20 2d 20 6a 75 6d |.. Summa|ry - jum|
|00002470| 70 73 a0 a0 4a 50 20 6e | 6e a0 4a 50 20 28 48 4c |ps..JP n|n.JP (HL|
|00002480| 29 a0 a0 4a 50 20 4e 43 | 2c 6e 6e 20 20 6a 75 6d |)..JP NC|,nn jum|
|00002490| 70 20 6f 6e 20 6e 6f 20 | 63 61 72 72 79 a0 4a 50 |p on no |carry.JP|
|000024a0| 20 43 2c 6e 6e 20 20 20 | 6a 75 6d 70 20 6f 6e 20 | C,nn |jump on |
|000024b0| 63 61 72 72 79 a0 4a 50 | 20 4e 5a 2c 6e 6e 20 20 |carry.JP| NZ,nn |
|000024c0| 6a 75 6d 70 20 6f 6e 20 | 6e 6f 74 20 7a 65 72 6f |jump on |not zero|
|000024d0| a0 4a 50 20 5a 2c 6e 6e | 20 20 20 6a 75 6d 70 20 |.JP Z,nn| jump |
|000024e0| 6f 6e 20 7a 65 72 6f a3 | 20 20 20 20 20 20 20 20 |on zero.| |
|000024f0| 20 20 45 58 41 4d 50 4c | 45 53 20 4f 46 20 4a 55 | EXAMPL|ES OF JU|
|00002500| 4d 50 53 a0 a0 20 41 6c | 74 68 6f 75 67 68 20 79 |MPS.. Al|though y|
|00002510| 6f 75 20 63 61 6e 20 65 | 6e 74 65 72 20 74 68 65 |ou can e|nter the|
|00002520| 20 61 64 64 72 65 73 73 | 20 77 69 74 68 69 6e 74 | address| withint|
|00002530| 68 65 20 6a 75 6d 70 20 | 69 6e 20 20 6e 75 6d 62 |he jump |in numb|
|00002540| 65 72 20 20 66 6f 72 6d | 2c 20 20 69 66 20 69 74 |er form|, if it|
|00002550| 20 64 6f 65 73 20 6e 6f | 74 65 71 75 61 6c 20 74 | does no|tequal t|
|00002560| 68 65 20 20 61 64 64 72 | 65 73 73 20 20 6f 66 20 |he addr|ess of |
|00002570| 20 74 68 65 20 20 73 74 | 61 72 74 20 20 6f 66 20 | the st|art of |
|00002580| 20 61 6e 69 6e 73 74 72 | 75 63 74 69 6f 6e 2c 20 | aninstr|uction, |
|00002590| 20 74 68 65 20 73 69 6d | 75 6c 61 74 6f 72 20 20 | the sim|ulator |
|000025a0| 77 69 6c 6c 20 73 74 6f | 70 20 20 61 74 74 68 65 |will sto|p atthe|
|000025b0| 20 20 4a 55 4d 50 2e 20 | 20 54 68 69 73 20 69 73 | JUMP. | This is|
|000025c0| 20 62 65 63 61 75 73 65 | 20 20 74 68 65 20 70 72 | because| the pr|
|000025d0| 6f 63 65 73 73 6f 72 77 | 6f 75 6c 64 20 20 70 65 |ocessorw|ould pe|
|000025e0| 72 66 6f 72 6d 20 20 74 | 68 65 20 20 69 6e 73 74 |rform t|he inst|
|000025f0| 72 75 63 74 69 6f 6e 20 | 20 69 74 20 66 69 6e 64 |ruction | it find|
|00002600| 73 61 74 20 74 68 61 74 | 20 61 64 64 72 65 73 73 |sat that| address|
|00002610| 20 61 6e 64 20 61 6e 79 | 74 68 69 6e 67 20 63 6f | and any|thing co|
|00002620| 75 6c 64 20 68 61 70 70 | 65 6e 2c 61 6e 64 20 75 |uld happ|en,and u|
|00002630| 73 75 61 6c 6c 79 20 64 | 6f 65 73 2e a0 a0 20 54 |sually d|oes... T|
|00002640| 6f 20 20 67 65 74 20 20 | 72 6f 75 6e 64 20 74 68 |o get |round th|
|00002650| 69 73 20 70 72 6f 62 6c | 65 6d 20 20 75 73 65 20 |is probl|em use |
|00002660| 61 20 6c 61 62 65 6c 2c | 64 65 63 6c 61 72 69 6e |a label,|declarin|
|00002670| 67 20 20 69 74 20 69 6e | 20 74 68 65 20 6c 61 62 |g it in| the lab|
|00002680| 65 6c 20 63 6f 6c 75 6d | 6e 20 69 6e 20 66 72 6f |el colum|n in fro|
|00002690| 6e 74 6f 66 20 74 68 65 | 20 20 69 6e 73 74 72 75 |ntof the| instru|
|000026a0| 63 74 69 6f 6e 20 20 74 | 6f 20 77 68 69 63 68 20 |ction t|o which |
|000026b0| 20 79 6f 75 20 77 69 73 | 68 20 74 6f 6a 75 6d 70 | you wis|h tojump|
|000026c0| 2e a3 20 4c 44 20 48 4c | 2c 32 32 35 32 38 a0 20 |.. LD HL|,22528. |
|000026d0| 20 4c 44 20 41 2c 30 a0 | 20 4c 4f 4f 50 31 20 4c | LD A,0.| LOOP1 L|
|000026e0| 44 20 28 48 4c 29 2c 41 | a0 20 20 49 4e 43 20 48 |D (HL),A|. INC H|
|000026f0| 4c a0 20 20 49 4e 43 20 | 41 a0 20 20 43 50 20 33 |L. INC |A. CP 3|
|00002700| 32 a0 20 20 4a 50 20 4e | 5a 2c 4c 4f 4f 50 31 a0 |2. JP N|Z,LOOP1.|
|00002710| 20 20 a0 20 4c 4f 4f 50 | 32 20 44 45 43 20 28 48 | . LOOP|2 DEC (H|
|00002720| 4c 29 a0 20 20 44 45 43 | 20 48 4c a0 20 20 4a 50 |L). DEC| HL. JP|
|00002730| 20 4e 5a 2c 4c 4f 4f 50 | 32 a0 20 20 52 45 54 a0 | NZ,LOOP|2. RET.|
|00002740| 20 20 a0 20 20 a0 20 20 | a0 20 20 20 20 20 20 20 | . . |. |
|00002750| 20 20 20 20 20 20 52 45 | 4c 41 54 49 56 45 20 4a | RE|LATIVE J|
|00002760| 55 4d 50 53 a0 a0 4f 6e | 65 20 20 64 69 66 66 69 |UMPS..On|e diffi|
|00002770| 63 75 6c 74 79 20 20 77 | 69 74 68 20 74 68 65 20 |culty w|ith the |
|00002780| 20 61 62 6f 76 65 20 20 | 74 79 70 65 73 20 6f 66 | above |types of|
|00002790| 6a 75 6d 70 20 69 73 20 | 74 68 61 74 2c 20 20 69 |jump is |that, i|
|000027a0| 66 20 74 68 65 20 73 74 | 61 72 74 20 61 64 64 72 |f the st|art addr|
|000027b0| 65 73 73 20 6f 66 20 74 | 68 65 70 72 6f 67 72 61 |ess of t|heprogra|
|000027c0| 6d 20 20 20 77 65 72 65 | 20 20 63 68 61 6e 67 65 |m were| change|
|000027d0| 64 2c 20 20 20 61 6c 6c | 20 20 74 68 65 20 20 20 |d, all| the |
|000027e0| 6a 75 6d 70 61 64 64 72 | 65 73 73 65 73 20 20 20 |jumpaddr|esses |
|000027f0| 77 6f 75 6c 64 20 20 72 | 65 71 75 69 72 65 20 20 |would r|equire |
|00002800| 20 6d 6f 64 69 66 69 63 | 61 74 69 6f 6e 2e 52 65 | modific|ation.Re|
|00002810| 6c 61 74 69 76 65 20 20 | 20 6a 75 6d 70 73 20 20 |lative | jumps |
|00002820| 20 64 6f 20 20 20 6e 6f | 74 20 20 20 68 61 76 65 | do no|t have|
|00002830| 20 20 20 20 74 68 69 73 | 64 69 66 66 69 63 75 6c | this|difficul|
|00002840| 74 79 2e 20 20 54 68 65 | 20 61 62 73 6f 6c 75 74 |ty. The| absolut|
|00002850| 65 20 20 61 64 64 72 65 | 73 73 20 69 73 20 20 6e |e addre|ss is n|
|00002860| 6f 74 73 74 6f 72 65 64 | 20 20 77 69 74 68 20 20 |otstored| with |
|00002870| 74 68 65 20 20 69 6e 73 | 74 72 75 63 74 69 6f 6e |the ins|truction|
|00002880| 2e 20 49 74 20 69 73 20 | 20 74 68 65 64 69 66 66 |. It is | thediff|
|00002890| 65 72 65 6e 63 65 20 62 | 65 74 77 65 65 6e 20 74 |erence b|etween t|
|000028a0| 68 65 20 63 75 72 72 65 | 6e 74 20 63 6f 6e 74 65 |he curre|nt conte|
|000028b0| 6e 74 73 20 6f 66 74 68 | 65 20 20 70 72 6f 67 72 |nts ofth|e progr|
|000028c0| 61 6d 20 20 20 63 6f 75 | 6e 74 65 72 20 61 6e 64 |am cou|nter and|
|000028d0| 20 74 68 65 20 20 61 64 | 64 72 65 73 73 20 74 6f | the ad|dress to|
|000028e0| 77 68 69 63 68 20 20 77 | 65 20 20 77 69 73 68 20 |which w|e wish |
|000028f0| 20 74 6f 20 6a 75 6d 70 | 20 20 74 68 61 74 20 20 | to jump| that |
|00002900| 69 73 20 20 73 74 6f 72 | 65 64 77 69 74 68 69 6e |is stor|edwithin|
|00002910| 20 74 68 65 20 69 6e 73 | 74 72 75 63 74 69 6f 6e | the ins|truction|
|00002920| 2e 20 52 65 6c 61 74 69 | 76 65 20 6a 75 6d 70 73 |. Relati|ve jumps|
|00002930| 20 61 72 65 6c 69 6d 69 | 74 65 64 20 74 6f 20 6a | arelimi|ted to j|
|00002940| 75 6d 70 69 6e 67 20 62 | 61 63 6b 77 61 72 64 73 |umping b|ackwards|
|00002950| 20 31 32 38 20 6c 6f 63 | 61 74 69 6f 6e 73 61 6e | 128 loc|ationsan|
|00002960| 64 20 66 6f 72 77 61 72 | 64 73 20 31 32 37 20 6c |d forwar|ds 127 l|
|00002970| 6f 63 61 74 69 6f 6e 73 | 2e a0 a0 20 54 68 65 20 |ocations|... The |
|00002980| 6d 6e 65 6d 6f 6e 69 63 | 20 66 6f 72 20 72 65 6c |mnemonic| for rel|
|00002990| 61 74 69 76 65 20 6a 75 | 6d 70 73 20 69 73 20 4a |ative ju|mps is J|
|000029a0| 52 20 61 6e 64 63 61 6e | 20 20 74 61 6b 65 20 20 |R andcan| take |
|000029b0| 61 6c 6c 20 74 68 65 20 | 66 6f 72 6d 73 20 64 69 |all the |forms di|
|000029c0| 73 63 75 73 73 65 64 20 | 20 73 6f 20 66 61 72 66 |scussed | so farf|
|000029d0| 6f 72 20 4a 50 2c 20 20 | 69 2e 65 2e 20 20 4a 52 |or JP, |i.e. JR|
|000029e0| 20 2c 20 4a 52 20 4e 43 | 2c 20 4a 52 20 43 2c 20 | , JR NC|, JR C, |
|000029f0| 4a 52 20 4e 5a 20 61 6e | 64 4a 52 20 5a 2e a3 20 |JR NZ an|dJR Z.. |
|00002a00| 54 68 65 72 65 20 20 69 | 73 20 20 6f 6e 65 20 70 |There i|s one p|
|00002a10| 61 72 74 69 63 75 6c 61 | 72 20 20 72 65 6c 61 74 |articula|r relat|
|00002a20| 69 76 65 20 20 6a 75 6d | 70 69 6e 73 74 72 75 63 |ive jum|pinstruc|
|00002a30| 74 69 6f 6e 20 20 74 68 | 61 74 20 69 73 20 70 61 |tion th|at is pa|
|00002a40| 72 74 69 63 75 6c 61 72 | 6c 79 20 20 20 75 73 65 |rticular|ly use|
|00002a50| 66 75 6c 6e 61 6d 65 6c | 79 20 44 65 63 72 65 6d |fulnamel|y Decrem|
|00002a60| 65 6e 74 20 61 6e 64 20 | 4a 75 6d 70 20 6f 6e 20 |ent and |Jump on |
|00002a70| 4e 6f 6e 2d 5a 65 72 6f | 2c 20 20 6f 72 44 4a 4e |Non-Zero|, orDJN|
|00002a80| 5a 2e 20 20 20 54 68 65 | 20 42 20 72 65 67 69 73 |Z. The| B regis|
|00002a90| 74 65 72 20 69 73 20 64 | 65 63 72 65 6d 65 6e 74 |ter is d|ecrement|
|00002aa0| 65 64 20 61 6e 64 2c 69 | 66 20 20 74 68 65 20 72 |ed and,i|f the r|
|00002ab0| 65 73 75 6c 74 20 69 73 | 20 6e 6f 74 20 7a 65 72 |esult is| not zer|
|00002ac0| 6f 2c 20 20 74 68 65 20 | 70 72 6f 63 65 73 73 6f |o, the |processo|
|00002ad0| 72 70 65 72 66 6f 72 6d | 73 20 20 61 20 72 65 6c |rperform|s a rel|
|00002ae0| 61 74 69 76 65 20 6a 75 | 6d 70 20 74 6f 20 74 68 |ative ju|mp to th|
|00002af0| 65 20 20 63 6f 6d 70 75 | 74 65 64 6e 65 77 20 61 |e compu|tednew a|
|00002b00| 64 64 72 65 73 73 2e 20 | 20 49 66 20 20 74 68 65 |ddress. | If the|
|00002b10| 20 20 72 65 73 75 6c 74 | 20 69 73 20 7a 65 72 6f | result| is zero|
|00002b20| 20 74 68 65 6e 74 68 65 | 20 6e 65 78 74 20 69 6e | thenthe| next in|
|00002b30| 73 74 72 75 63 74 69 6f | 6e 20 69 6e 20 73 65 71 |structio|n in seq|
|00002b40| 75 65 6e 63 65 20 69 73 | 20 74 61 6b 65 6e 2e 44 |uence is| taken.D|
|00002b50| 4a 4e 5a 20 20 61 6c 6c | 6f 77 73 20 20 75 73 20 |JNZ all|ows us |
|00002b60| 20 74 6f 20 20 72 65 70 | 65 61 74 20 20 61 20 20 | to rep|eat a |
|00002b70| 73 65 72 69 65 73 20 6f | 66 69 6e 73 74 72 75 63 |series o|finstruc|
|00002b80| 74 69 6f 6e 73 20 61 20 | 70 72 65 73 65 74 20 6e |tions a |preset n|
|00002b90| 75 6d 62 65 72 20 6f 66 | 20 74 69 6d 65 73 2e 20 |umber of| times. |
|00002ba0| 54 68 65 6e 75 6d 62 65 | 72 20 6f 66 20 72 65 70 |Thenumbe|r of rep|
|00002bb0| 65 61 74 73 20 69 73 20 | 65 71 75 61 6c 20 74 6f |eats is |equal to|
|00002bc0| 20 74 68 65 20 63 6f 6e | 74 65 6e 74 73 6f 66 20 | the con|tentsof |
|00002bd0| 20 74 68 65 20 20 20 42 | 20 20 72 65 67 69 73 74 | the B| regist|
|00002be0| 65 72 20 20 77 68 65 6e | 20 20 74 68 65 20 20 6c |er when| the l|
|00002bf0| 6f 6f 70 20 20 69 73 65 | 6e 74 65 72 65 64 2c 20 |oop ise|ntered, |
|00002c00| 73 6f 20 6c 6f 6e 67 20 | 61 73 20 20 74 68 65 20 |so long |as the |
|00002c10| 20 42 20 20 72 65 67 69 | 73 74 65 72 20 64 6f 65 | B regi|ster doe|
|00002c20| 73 6e 6f 74 20 20 20 66 | 6f 72 6d 20 20 20 70 61 |snot f|orm pa|
|00002c30| 72 74 20 20 20 6f 66 20 | 20 20 74 68 65 20 20 20 |rt of | the |
|00002c40| 73 65 72 69 65 73 20 20 | 20 6f 66 69 6e 73 74 72 |series | ofinstr|
|00002c50| 75 63 74 69 6f 6e 73 2e | a0 a0 20 4e 6f 20 20 20 |uctions.|.. No |
|00002c60| 66 6c 61 67 73 20 20 20 | 61 72 65 20 20 61 66 66 |flags |are aff|
|00002c70| 65 63 74 65 64 20 20 62 | 79 20 20 61 6e 79 20 20 |ected b|y any |
|00002c80| 6a 75 6d 70 69 6e 73 74 | 72 75 63 74 69 6f 6e 73 |jumpinst|ructions|
|00002c90| 20 69 6e 63 6c 75 64 69 | 6e 67 20 44 4a 4e 5a 2e | includi|ng DJNZ.|
|00002ca0| a3 20 53 75 6d 6d 61 72 | 79 20 2d 20 72 65 6c 61 |. Summar|y - rela|
|00002cb0| 74 69 76 65 20 6a 75 6d | 70 73 a0 a0 4a 52 20 65 |tive jum|ps..JR e|
|00002cc0| 20 20 20 20 20 20 77 68 | 65 72 65 20 65 20 69 73 | wh|ere e is|
|00002cd0| 20 74 68 65 20 64 69 73 | 70 6c 61 63 65 6d 65 6e | the dis|placemen|
|00002ce0| 74 20 20 20 69 6e 4a 52 | 20 4e 43 2c 65 20 20 20 |t inJR| NC,e |
|00002cf0| 74 68 65 20 72 61 6e 67 | 65 20 31 32 37 20 74 6f |the rang|e 127 to|
|00002d00| 20 2d 31 32 38 a0 4a 52 | 20 43 2c 65 a0 4a 52 20 | -128.JR| C,e.JR |
|00002d10| 4e 5a 2c 65 a0 4a 52 20 | 5a 2c 65 a0 a0 44 4a 4e |NZ,e.JR |Z,e..DJN|
|00002d20| 5a 20 65 20 20 20 20 64 | 65 63 72 65 6d 65 6e 74 |Z e d|ecrement|
|00002d30| 20 61 6e 64 20 6a 75 6d | 70 20 6f 6e 20 20 6e 6f | and jum|p on no|
|00002d40| 6e 20 7a 65 72 6f a3 20 | 20 20 20 20 20 20 20 45 |n zero. | E|
|00002d50| 58 41 4d 50 4c 45 20 4f | 46 20 52 45 4c 41 54 49 |XAMPLE O|F RELATI|
|00002d60| 56 45 20 4a 55 4d 50 53 | a0 a0 20 41 6c 6c 20 61 |VE JUMPS|.. All a|
|00002d70| 73 73 65 6d 62 6c 65 72 | 73 20 63 61 6c 63 75 6c |ssembler|s calcul|
|00002d80| 61 74 65 20 74 68 65 20 | 64 69 73 70 6c 61 63 65 |ate the |displace|
|00002d90| 6d 65 6e 74 66 6f 72 20 | 72 65 6c 61 74 69 76 65 |mentfor |relative|
|00002da0| 20 6a 75 6d 70 73 2e 20 | 20 20 54 68 65 20 61 73 | jumps. | The as|
|00002db0| 73 65 6d 62 6c 65 72 20 | 77 69 74 68 69 6e 74 68 |sembler |withinth|
|00002dc0| 69 73 20 54 55 54 4f 52 | 20 69 73 20 6e 6f 20 65 |is TUTOR| is no e|
|00002dd0| 78 63 65 70 74 69 6f 6e | 2e 20 52 65 6c 61 74 69 |xception|. Relati|
|00002de0| 76 65 20 6a 75 6d 70 73 | 73 68 6f 75 6c 64 20 62 |ve jumps|should b|
|00002df0| 65 20 65 6e 74 65 72 65 | 64 20 77 69 74 68 20 6c |e entere|d with l|
|00002e00| 61 62 65 6c 73 2e a0 a0 | 20 54 68 65 20 20 6c 6f |abels...| The lo|
|00002e10| 63 61 74 69 6f 6e 20 20 | 32 33 30 36 30 20 20 68 |cation |23060 h|
|00002e20| 6f 6c 64 73 20 61 20 6e | 75 6d 62 65 72 20 20 32 |olds a n|umber 2|
|00002e30| 35 36 6c 65 73 73 20 20 | 74 68 61 6e 20 20 20 74 |56less |than t|
|00002e40| 68 65 20 20 73 74 61 72 | 74 20 20 6f 66 20 20 74 |he star|t of t|
|00002e50| 68 65 20 20 53 70 65 63 | 74 72 75 6d 63 68 61 72 |he Spec|trumchar|
|00002e60| 61 63 74 65 72 20 20 20 | 73 65 74 2e 20 20 20 54 |acter |set. T|
|00002e70| 68 69 73 20 20 20 65 78 | 61 6d 70 6c 65 20 20 20 |his ex|ample |
|00002e80| 77 72 69 74 65 73 63 68 | 61 72 61 63 74 65 72 73 |writesch|aracters|
|00002e90| 20 20 61 6c 6f 6e 67 20 | 20 74 68 65 20 20 74 6f | along | the to|
|00002ea0| 70 20 20 6c 69 6e 65 20 | 20 6f 66 20 20 74 68 65 |p line | of the|
|00002eb0| 73 63 72 65 65 6e 2e 20 | 20 20 4f 6e 63 65 20 20 |screen. | Once |
|00002ec0| 20 79 6f 75 20 20 68 61 | 76 65 20 20 20 66 6f 6c | you ha|ve fol|
|00002ed0| 6c 6f 77 65 64 20 20 74 | 68 65 69 6e 64 69 76 69 |lowed t|heindivi|
|00002ee0| 64 75 61 6c 20 73 74 65 | 70 73 20 6f 66 20 74 68 |dual ste|ps of th|
|00002ef0| 65 20 20 70 72 6f 67 72 | 61 6d 2c 20 20 6b 65 65 |e progr|am, kee|
|00002f00| 70 69 6e 67 61 20 6b 65 | 79 20 20 70 72 65 73 73 |pinga ke|y press|
|00002f10| 65 64 20 77 69 6c 6c 20 | 72 65 73 75 6c 74 20 69 |ed will |result i|
|00002f20| 6e 20 74 68 65 20 20 70 | 72 6f 67 72 61 6d 62 65 |n the p|rogrambe|
|00002f30| 69 6e 67 20 73 74 65 70 | 70 65 64 20 74 68 72 6f |ing step|ped thro|
|00002f40| 75 67 68 20 71 75 69 63 | 6b 6c 79 2e a0 a0 20 54 |ugh quic|kly... T|
|00002f50| 68 65 20 20 61 72 72 61 | 6e 67 65 6d 65 6e 74 20 |he arra|ngement |
|00002f60| 6f 66 20 74 68 65 20 73 | 63 72 65 65 6e 2c 20 61 |of the s|creen, a|
|00002f70| 6e 64 20 6f 74 68 65 72 | 75 73 65 66 75 6c 20 20 |nd other|useful |
|00002f80| 20 6d 65 6d 6f 72 79 20 | 20 20 6c 6f 63 61 74 69 | memory | locati|
|00002f90| 6f 6e 73 20 20 20 77 69 | 74 68 69 6e 20 20 20 74 |ons wi|thin t|
|00002fa0| 68 65 53 70 65 63 74 72 | 75 6d 20 61 72 65 20 67 |heSpectr|um are g|
|00002fb0| 69 76 65 6e 20 69 6e 20 | 74 68 65 20 54 55 54 4f |iven in |the TUTO|
|00002fc0| 52 20 6d 61 6e 75 61 6c | 2e a0 a0 20 54 68 65 20 |R manual|... The |
|00002fd0| 53 70 65 63 74 72 75 6d | 20 77 6f 72 6b 73 20 6f |Spectrum| works o|
|00002fe0| 6e 20 20 33 32 20 63 68 | 61 72 61 63 74 65 72 73 |n 32 ch|aracters|
|00002ff0| 20 20 70 65 72 6c 69 6e | 65 20 61 6e 64 20 6e 6f | perlin|e and no|
|00003000| 74 20 34 32 20 61 73 20 | 64 6f 65 73 20 74 68 65 |t 42 as |does the|
|00003010| 20 54 55 54 4f 52 a3 20 | 4c 44 20 44 45 2c 28 32 | TUTOR. |LD DE,(2|
|00003020| 33 36 30 36 29 a0 20 20 | 49 4e 43 20 44 a0 20 20 |3606). |INC D. |
|00003030| 4c 44 20 48 4c 2c 31 36 | 33 38 34 a0 20 4c 4f 4f |LD HL,16|384. LOO|
|00003040| 50 31 20 4c 44 20 28 53 | 54 4f 52 45 29 2c 48 4c |P1 LD (S|TORE),HL|
|00003050| a0 20 20 4c 44 20 42 2c | 38 a0 20 4c 4f 4f 50 32 |. LD B,|8. LOOP2|
|00003060| 20 4c 44 20 41 2c 28 44 | 45 29 a0 20 20 4c 44 20 | LD A,(D|E). LD |
|00003070| 28 48 4c 29 2c 41 a0 20 | 20 49 4e 43 20 44 45 a0 |(HL),A. | INC DE.|
|00003080| 20 20 49 4e 43 20 48 a0 | 20 20 44 4a 4e 5a 20 4c | INC H.| DJNZ L|
|00003090| 4f 4f 50 32 a0 20 20 4c | 44 20 48 4c 2c 28 53 54 |OOP2. L|D HL,(ST|
|000030a0| 4f 52 45 29 a0 20 20 49 | 4e 43 20 48 4c a0 20 20 |ORE). I|NC HL. |
|000030b0| 4a 52 20 4c 4f 4f 50 31 | a0 20 53 54 4f 52 45 20 |JR LOOP1|. STORE |
|000030c0| 44 45 46 57 20 30 a0 20 | 20 a0 20 20 20 20 20 20 |DEFW 0. | . |
|000030d0| 20 20 45 58 41 4d 50 4c | 45 20 4f 46 20 52 45 4c | EXAMPL|E OF REL|
|000030e0| 41 54 49 56 45 20 4a 55 | 4d 50 53 a0 a0 20 54 68 |ATIVE JU|MPS.. Th|
|000030f0| 69 73 20 20 65 78 61 6d | 70 6c 65 20 20 69 6c 6c |is exam|ple ill|
|00003100| 75 73 74 72 61 74 65 73 | 20 20 61 20 20 6d 65 74 |ustrates| a met|
|00003110| 68 6f 64 20 20 6f 66 6d | 75 6c 74 69 70 6c 69 63 |hod ofm|ultiplic|
|00003120| 61 74 69 6f 6e 2e 20 20 | 54 68 65 72 65 20 20 61 |ation. |There a|
|00003130| 72 65 20 20 6f 74 68 65 | 72 20 20 66 61 73 74 65 |re othe|r faste|
|00003140| 72 6d 65 74 68 6f 64 73 | 20 74 68 61 74 20 77 69 |rmethods| that wi|
|00003150| 6c 6c 20 62 65 20 73 68 | 6f 77 6e 20 6c 61 74 65 |ll be sh|own late|
|00003160| 72 2e a3 20 4c 44 20 48 | 4c 2c 53 54 4f 52 45 a0 |r.. LD H|L,STORE.|
|00003170| 20 20 4c 44 20 42 2c 28 | 48 4c 29 a0 20 20 49 4e | LD B,(|HL). IN|
|00003180| 43 20 48 4c a0 20 20 4c | 44 20 45 2c 28 48 4c 29 |C HL. L|D E,(HL)|
|00003190| a0 20 20 4c 44 20 48 4c | 2c 30 a0 20 20 4c 44 20 |. LD HL|,0. LD |
|000031a0| 44 2c 30 a0 20 4c 4f 4f | 50 20 20 41 44 44 20 48 |D,0. LOO|P ADD H|
|000031b0| 4c 2c 44 45 a0 20 20 44 | 4a 4e 5a 20 4c 4f 4f 50 |L,DE. D|JNZ LOOP|
|000031c0| a0 20 20 4c 44 20 28 41 | 4e 53 29 2c 48 4c a0 20 |. LD (A|NS),HL. |
|000031d0| 20 52 45 54 a0 20 20 a0 | 20 53 54 4f 52 45 20 44 | RET. .| STORE D|
|000031e0| 45 46 42 20 36 a0 20 20 | 44 45 46 42 20 35 38 a0 |EFB 6. |DEFB 58.|
|000031f0| 20 41 4e 53 20 20 20 44 | 45 46 57 20 30 a0 20 20 | ANS D|EFW 0. |
|00003200| a0 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003210| 20 20 54 48 45 20 53 54 | 41 43 4b a0 a0 20 54 68 | THE ST|ACK.. Th|
|00003220| 65 20 20 53 74 61 63 6b | 20 69 73 20 61 6e 20 61 |e Stack| is an a|
|00003230| 72 65 61 20 6f 66 20 65 | 78 74 65 72 6e 61 6c 20 |rea of e|xternal |
|00003240| 20 52 61 6e 64 6f 6d 41 | 63 63 65 73 73 20 4d 65 | RandomA|ccess Me|
|00003250| 6d 6f 72 79 2c 20 74 68 | 61 74 20 69 73 20 75 73 |mory, th|at is us|
|00003260| 65 64 20 61 73 20 61 20 | 73 65 72 69 65 73 20 6f |ed as a |series o|
|00003270| 66 72 65 67 69 73 74 65 | 72 20 20 70 61 69 72 73 |fregiste|r pairs|
|00003280| 2c 20 20 69 6e 20 20 63 | 6f 6e 6a 75 6e 63 74 69 |, in c|onjuncti|
|00003290| 6f 6e 20 20 77 69 74 68 | 20 20 61 53 74 61 63 6b |on with| aStack|
|000032a0| 20 50 6f 69 6e 74 65 72 | 2e 20 54 68 65 20 53 74 | Pointer|. The St|
|000032b0| 61 63 6b 20 50 6f 69 6e | 74 65 72 20 28 53 50 29 |ack Poin|ter (SP)|
|000032c0| 20 69 73 20 61 73 69 6e | 67 6c 65 20 20 64 6f 75 | is asin|gle dou|
|000032d0| 62 6c 65 20 20 6c 65 6e | 67 74 68 20 72 65 67 69 |ble len|gth regi|
|000032e0| 73 74 65 72 20 77 69 74 | 68 69 6e 20 74 68 65 5a |ster wit|hin theZ|
|000032f0| 38 30 2c 20 63 61 70 61 | 62 6c 65 20 6f 66 20 68 |80, capa|ble of h|
|00003300| 6f 6c 64 69 6e 67 20 75 | 70 20 74 6f 20 36 35 33 |olding u|p to 653|
|00003310| 33 35 2e a0 a0 20 42 65 | 66 6f 72 65 20 20 20 6c |35... Be|fore l|
|00003320| 6f 61 64 69 6e 67 20 20 | 20 74 68 65 20 20 53 74 |oading | the St|
|00003330| 61 63 6b 20 20 66 72 6f | 6d 20 20 20 61 6e 79 69 |ack fro|m anyi|
|00003340| 6e 74 65 72 6e 61 6c 20 | 72 65 67 69 73 74 65 72 |nternal |register|
|00003350| 20 70 61 69 72 2c 20 20 | 74 68 65 20 53 74 61 63 | pair, |the Stac|
|00003360| 6b 20 50 6f 69 6e 74 65 | 72 69 73 20 64 65 63 72 |k Pointe|ris decr|
|00003370| 65 6d 65 6e 74 65 64 20 | 20 74 77 69 63 65 2c 20 |emented | twice, |
|00003380| 28 20 74 68 75 73 20 70 | 6f 69 6e 74 69 6e 67 20 |( thus p|ointing |
|00003390| 20 74 6f 74 68 65 20 20 | 6e 65 78 74 20 70 61 69 | tothe |next pai|
|000033a0| 72 20 6f 66 20 6d 65 6d | 6f 72 79 20 6c 6f 63 61 |r of mem|ory loca|
|000033b0| 74 69 6f 6e 73 20 29 2e | 20 20 54 68 65 63 6f 6e |tions ).| Thecon|
|000033c0| 74 65 6e 74 73 20 6f 66 | 20 74 68 65 20 20 72 65 |tents of| the re|
|000033d0| 67 69 73 74 65 72 20 69 | 73 20 20 74 68 65 6e 20 |gister i|s then |
|000033e0| 20 6c 6f 61 64 65 64 69 | 6e 74 6f 20 74 68 65 20 | loadedi|nto the |
|000033f0| 20 53 74 61 63 6b 20 20 | 69 6e 64 69 72 65 63 74 | Stack |indirect|
|00003400| 6c 79 20 20 75 73 69 6e | 67 20 74 68 65 20 20 53 |ly usin|g the S|
|00003410| 50 72 65 67 69 73 74 65 | 72 20 61 73 20 74 68 65 |Pregiste|r as the|
|00003420| 20 61 64 64 72 65 73 73 | 2e a0 a0 20 54 68 65 20 | address|... The |
|00003430| 69 6e 73 74 72 75 63 74 | 69 6f 6e 20 69 73 20 50 |instruct|ion is P|
|00003440| 55 53 48 20 64 64 2e 20 | 43 6f 6e 74 69 6e 75 69 |USH dd. |Continui|
|00003450| 6e 67 20 74 6f 50 55 53 | 48 20 20 64 61 74 61 20 |ng toPUS|H data |
|00003460| 6f 6e 20 74 6f 20 74 68 | 65 20 53 74 61 63 6b 20 |on to th|e Stack |
|00003470| 20 72 65 73 75 6c 74 73 | 20 69 6e 20 74 68 65 64 | results| in thed|
|00003480| 61 74 61 20 20 62 65 69 | 6e 67 20 70 75 73 68 65 |ata bei|ng pushe|
|00003490| 64 20 69 6e 20 61 74 20 | 74 68 65 20 62 6f 74 74 |d in at |the bott|
|000034a0| 6f 6d 20 6f 66 20 74 68 | 65 53 74 61 63 6b 20 20 |om of th|eStack |
|000034b0| 61 6e 64 20 74 68 65 20 | 53 74 61 63 6b 20 50 6f |and the |Stack Po|
|000034c0| 69 6e 74 65 72 20 20 77 | 6f 72 6b 69 6e 67 20 20 |inter w|orking |
|000034d0| 69 74 73 77 61 79 20 64 | 6f 77 6e 20 74 68 72 6f |itsway d|own thro|
|000034e0| 75 67 68 20 6d 65 6d 6f | 72 79 2e a3 20 50 4f 50 |ugh memo|ry.. POP|
|000034f0| 20 64 64 20 72 65 74 72 | 69 65 76 65 73 20 64 61 | dd retr|ieves da|
|00003500| 74 61 20 66 72 6f 6d 20 | 74 68 65 20 53 74 61 63 |ta from |the Stac|
|00003510| 6b 20 69 6e 74 6f 74 68 | 65 20 64 65 66 69 6e 65 |k intoth|e define|
|00003520| 64 20 20 72 65 67 69 73 | 74 65 72 20 20 70 61 69 |d regis|ter pai|
|00003530| 72 2e 20 20 54 68 65 20 | 72 65 67 69 73 74 65 72 |r. The |register|
|00003540| 70 61 69 72 20 20 69 73 | 20 20 6c 6f 61 64 65 64 |pair is| loaded|
|00003550| 20 77 69 74 68 20 74 68 | 65 20 63 6f 6e 74 65 6e | with th|e conten|
|00003560| 74 73 20 6f 66 20 20 74 | 68 65 6d 65 6d 6f 72 79 |ts of t|hememory|
|00003570| 20 6c 6f 63 61 74 69 6f | 6e 20 70 6f 69 6e 74 65 | locatio|n pointe|
|00003580| 64 20 74 6f 20 62 79 20 | 53 50 2e 20 54 68 65 6e |d to by |SP. Then|
|00003590| 20 74 68 65 53 50 20 72 | 65 67 69 73 74 65 72 20 | theSP r|egister |
|000035a0| 69 73 20 69 6e 63 72 65 | 6d 65 6e 74 65 64 20 74 |is incre|mented t|
|000035b0| 77 69 63 65 2e a0 a0 20 | 43 6f 6e 74 69 6e 75 69 |wice... |Continui|
|000035c0| 6e 67 20 20 74 6f 20 20 | 50 4f 50 20 64 61 74 61 |ng to |POP data|
|000035d0| 20 66 72 6f 6d 20 20 74 | 68 65 20 20 53 74 61 63 | from t|he Stac|
|000035e0| 6b 72 65 73 75 6c 74 73 | 20 20 69 6e 20 69 6e 66 |kresults| in inf|
|000035f0| 6f 72 6d 61 74 69 6f 6e | 20 62 65 69 6e 67 20 50 |ormation| being P|
|00003600| 4f 50 70 65 64 20 20 66 | 72 6f 6d 74 68 65 20 20 |OPped f|romthe |
|00003610| 62 6f 74 74 6f 6d 20 20 | 6f 66 20 74 68 65 20 53 |bottom |of the S|
|00003620| 74 61 63 6b 20 20 61 6e | 64 20 20 74 68 65 20 20 |tack an|d the |
|00003630| 53 74 61 63 6b 50 6f 69 | 6e 74 65 72 20 20 77 6f |StackPoi|nter wo|
|00003640| 72 6b 69 6e 67 20 20 69 | 74 73 20 77 61 79 20 62 |rking i|ts way b|
|00003650| 61 63 6b 20 75 70 20 20 | 74 68 72 6f 75 67 68 74 |ack up |throught|
|00003660| 68 65 20 6d 65 6d 6f 72 | 79 2e a0 a0 20 49 66 20 |he memor|y... If |
|00003670| 20 61 20 73 65 72 69 65 | 73 20 6f 66 20 72 65 67 | a serie|s of reg|
|00003680| 69 73 74 65 72 73 20 69 | 73 20 50 55 53 48 65 64 |isters i|s PUSHed|
|00003690| 20 6f 6e 20 74 6f 74 68 | 65 20 53 74 61 63 6b 2c | on toth|e Stack,|
|000036a0| 20 61 6e 64 20 73 75 62 | 73 65 71 75 65 6e 74 6c | and sub|sequentl|
|000036b0| 79 20 50 4f 50 70 65 64 | 20 6f 66 66 20 74 68 65 |y POPped| off the|
|000036c0| 53 74 61 63 6b 2c 20 74 | 68 65 79 20 72 65 61 70 |Stack, t|hey reap|
|000036d0| 70 65 61 72 20 69 6e 20 | 74 68 65 20 72 65 76 65 |pear in |the reve|
|000036e0| 72 73 65 20 6f 72 64 65 | 72 2e a0 20 54 68 65 20 |rse orde|r.. The |
|000036f0| 42 43 2c 20 44 45 20 61 | 6e 64 20 48 4c 20 72 65 |BC, DE a|nd HL re|
|00003700| 67 69 73 74 65 72 73 20 | 6d 61 79 20 62 65 20 50 |gisters |may be P|
|00003710| 55 53 48 65 64 6f 6e 20 | 74 6f 20 20 61 6e 64 20 |USHedon |to and |
|00003720| 20 50 4f 50 70 65 64 20 | 20 66 72 6f 6d 20 20 74 | POPped | from t|
|00003730| 68 65 20 20 53 74 61 63 | 6b 2e 20 20 54 68 65 41 |he Stac|k. TheA|
|00003740| 63 63 75 6d 75 6c 61 74 | 6f 72 20 6d 61 79 20 61 |ccumulat|or may a|
|00003750| 6c 73 6f 20 62 65 20 20 | 50 55 53 48 65 64 20 6f |lso be |PUSHed o|
|00003760| 6e 20 74 6f 20 20 74 68 | 65 53 74 61 63 6b 2c 20 |n to th|eStack, |
|00003770| 20 62 75 74 20 20 74 68 | 69 73 20 20 69 73 20 20 | but th|is is |
|00003780| 64 6f 6e 65 20 77 69 74 | 68 20 74 68 65 20 20 66 |done wit|h the f|
|00003790| 6c 61 67 72 65 67 69 73 | 74 65 72 20 46 2c 20 77 |lagregis|ter F, w|
|000037a0| 68 69 63 68 20 77 69 6c | 6c 20 62 65 20 64 69 73 |hich wil|l be dis|
|000037b0| 63 75 73 73 65 64 20 6c | 61 74 65 72 2e a3 20 54 |cussed l|ater.. T|
|000037c0| 68 65 20 20 53 74 61 63 | 6b 20 20 50 6f 69 6e 74 |he Stac|k Point|
|000037d0| 65 72 20 20 63 61 6e 20 | 20 74 61 6b 65 20 20 70 |er can | take p|
|000037e0| 61 72 74 20 69 6e 20 61 | 6e 75 6d 62 65 72 20 6f |art in a|number o|
|000037f0| 66 20 69 6e 73 74 72 75 | 63 74 69 6f 6e 73 20 61 |f instru|ctions a|
|00003800| 6c 72 65 61 64 79 20 64 | 69 73 63 75 73 73 65 64 |lready d|iscussed|
|00003810| 2e a0 a0 20 54 68 65 79 | 20 61 72 65 20 73 69 6d |... They| are sim|
|00003820| 70 6c 79 20 74 68 6f 73 | 65 20 69 6e 20 20 77 68 |ply thos|e in wh|
|00003830| 69 63 68 20 44 45 2c 20 | 6f 72 20 42 43 63 61 6e |ich DE, |or BCcan|
|00003840| 20 74 61 6b 65 20 70 61 | 72 74 2e 20 54 68 65 20 | take pa|rt. The |
|00003850| 69 6e 73 74 72 75 63 74 | 69 6f 6e 20 20 65 71 75 |instruct|ion equ|
|00003860| 69 76 61 6c 65 6e 74 74 | 6f 20 45 58 20 44 45 2c |ivalentt|o EX DE,|
|00003870| 48 4c 20 20 69 73 20 68 | 6f 77 65 76 65 72 20 20 |HL is h|owever |
|00003880| 45 58 20 28 53 50 29 2c | 48 4c 2c 20 20 74 68 61 |EX (SP),|HL, tha|
|00003890| 74 45 58 63 68 61 6e 67 | 65 73 20 74 68 65 20 20 |tEXchang|es the |
|000038a0| 63 6f 6e 74 65 6e 74 73 | 20 20 6f 66 20 20 74 68 |contents| of th|
|000038b0| 65 20 62 6f 74 74 6f 6d | 20 6f 66 74 68 65 20 53 |e bottom| ofthe S|
|000038c0| 74 61 63 6b 20 77 69 74 | 68 20 74 68 65 20 48 4c |tack wit|h the HL|
|000038d0| 20 72 65 67 69 73 74 65 | 72 2e a3 20 53 75 6d 6d | registe|r.. Summ|
|000038e0| 61 72 79 20 2d 20 74 68 | 65 20 53 74 61 63 6b 20 |ary - th|e Stack |
|000038f0| 61 6e 64 20 53 50 20 72 | 65 67 69 73 74 65 72 a0 |and SP r|egister.|
|00003900| a0 20 50 55 53 48 20 44 | 44 20 20 77 68 65 72 65 |. PUSH D|D where|
|00003910| 20 20 44 44 20 20 69 73 | 20 41 46 2c 20 42 43 2c | DD is| AF, BC,|
|00003920| 20 44 45 2c 20 6f 72 20 | 48 4c 2e 20 20 20 20 20 | DE, or |HL. |
|00003930| 20 20 20 20 20 46 72 6f | 6d 20 6e 6f 77 20 6f 6e | Fro|m now on|
|00003940| 20 64 64 20 63 61 6e 20 | 62 65 20 63 6f 6e 73 69 | dd can |be consi|
|00003950| 64 65 72 65 64 20 20 20 | 20 20 20 20 20 20 20 61 |dered | a|
|00003960| 73 20 42 43 2c 20 44 45 | 2c 20 48 4c 2c 6f 72 20 |s BC, DE|, HL,or |
|00003970| 53 50 2e a0 20 50 4f 50 | 20 44 44 a0 a0 20 4c 44 |SP.. POP| DD.. LD|
|00003980| 20 53 50 2c 6e 6e a0 20 | 4c 44 20 53 50 2c 28 6e | SP,nn. |LD SP,(n|
|00003990| 6e 29 a0 20 4c 44 20 28 | 6e 6e 29 2c 53 50 a0 20 |n). LD (|nn),SP. |
|000039a0| 4c 44 20 53 50 2c 48 4c | a0 a0 20 41 44 44 20 48 |LD SP,HL|.. ADD H|
|000039b0| 4c 2c 53 50 a0 20 41 44 | 43 20 48 4c 2c 53 50 a0 |L,SP. AD|C HL,SP.|
|000039c0| 20 53 42 43 20 48 4c 2c | 53 50 a0 20 49 4e 43 20 | SBC HL,|SP. INC |
|000039d0| 53 50 a0 20 44 45 43 20 | 53 50 a0 a0 20 45 58 20 |SP. DEC |SP.. EX |
|000039e0| 28 53 50 29 2c 48 4c a3 | 20 20 20 20 20 20 20 20 |(SP),HL.| |
|000039f0| 20 45 58 41 4d 50 4c 45 | 53 20 55 53 49 4e 47 20 | EXAMPLE|S USING |
|00003a00| 54 48 45 20 53 54 41 43 | 4b a0 a0 20 54 68 65 20 |THE STAC|K.. The |
|00003a10| 73 69 6d 75 6c 61 74 6f | 72 20 75 73 65 73 20 74 |simulato|r uses t|
|00003a20| 68 65 20 6d 65 6d 6f 72 | 79 20 61 72 65 61 20 20 |he memor|y area |
|00003a30| 33 32 30 30 30 74 6f 20 | 20 33 32 32 35 35 20 20 |32000to | 32255 |
|00003a40| 66 6f 72 20 20 74 68 65 | 20 20 70 75 70 69 6c 73 |for the| pupils|
|00003a50| 20 20 70 72 6f 67 72 61 | 6d 73 2e 20 54 68 65 53 | progra|ms. TheS|
|00003a60| 74 61 63 6b 20 50 6f 69 | 6e 74 65 72 20 69 73 20 |tack Poi|nter is |
|00003a70| 69 6e 69 74 69 61 6c 6c | 79 20 20 73 65 74 20 74 |initiall|y set t|
|00003a80| 6f 20 20 33 32 32 35 34 | 2c 61 6e 64 20 77 6f 72 |o 32254|,and wor|
|00003a90| 6b 73 20 69 74 73 20 77 | 61 79 20 64 6f 77 6e 20 |ks its w|ay down |
|00003aa0| 74 6f 77 61 72 64 73 20 | 74 68 65 20 70 72 6f 67 |towards |the prog|
|00003ab0| 72 61 6d 61 72 65 61 2e | 20 20 4b 65 65 70 20 74 |ramarea.| Keep t|
|00003ac0| 68 65 20 53 50 20 61 74 | 20 74 68 65 20 74 6f 70 |he SP at| the top|
|00003ad0| 20 65 6e 64 20 6f 66 20 | 20 74 68 69 73 61 72 65 | end of | thisare|
|00003ae0| 61 20 20 6f 66 20 20 20 | 6d 65 6d 6f 72 79 20 20 |a of |memory |
|00003af0| 74 6f 20 20 20 65 6e 73 | 75 72 65 20 20 74 68 61 |to ens|ure tha|
|00003b00| 74 20 20 20 74 68 65 73 | 69 6d 75 6c 61 74 6f 72 |t thes|imulator|
|00003b10| 20 64 6f 65 73 20 6e 6f | 74 20 73 74 6f 70 2e a0 | does no|t stop..|
|00003b20| a0 20 54 68 65 20 6c 61 | 73 74 20 66 6f 75 72 20 |. The la|st four |
|00003b30| 70 61 69 72 73 20 6f 66 | 20 20 6d 65 6d 6f 72 79 |pairs of| memory|
|00003b40| 20 20 6c 6f 63 61 74 69 | 6f 6e 73 69 6e 20 74 68 | locati|onsin th|
|00003b50| 65 20 20 53 74 61 63 6b | 20 61 72 65 20 20 64 69 |e Stack| are di|
|00003b60| 73 70 6c 61 79 65 64 20 | 61 74 20 74 68 65 20 62 |splayed |at the b|
|00003b70| 6f 74 74 6f 6d 72 69 67 | 68 74 20 68 61 6e 64 20 |ottomrig|ht hand |
|00003b80| 63 6f 72 6e 65 72 20 6f | 66 20 74 68 65 20 73 63 |corner o|f the sc|
|00003b90| 72 65 65 6e 2e 20 20 20 | 41 73 20 77 69 74 68 74 |reen. |As witht|
|00003ba0| 68 65 20 50 72 6f 67 72 | 61 6d 20 43 6f 75 6e 74 |he Progr|am Count|
|00003bb0| 65 72 2c 20 74 68 65 20 | 70 6f 73 69 74 69 6f 6e |er, the |position|
|00003bc0| 20 74 6f 20 77 68 69 63 | 68 74 68 65 20 53 74 61 | to whic|hthe Sta|
|00003bd0| 63 6b 20 50 6f 69 6e 74 | 65 72 20 70 6f 69 6e 74 |ck Point|er point|
|00003be0| 73 20 69 73 20 73 68 6f | 77 6e 20 69 6e 20 43 79 |s is sho|wn in Cy|
|00003bf0| 61 6e 2e a0 20 54 68 65 | 20 69 6e 73 74 72 75 63 |an.. The| instruc|
|00003c00| 74 69 6f 6e 20 49 4e 43 | 20 53 50 20 69 73 20 69 |tion INC| SP is i|
|00003c10| 6e 63 6c 75 64 65 64 20 | 61 74 20 74 68 65 65 6e |ncluded |at theen|
|00003c20| 64 20 6f 66 20 74 68 65 | 20 70 72 6f 67 72 61 6d |d of the| program|
|00003c30| 20 20 74 6f 20 20 65 6e | 73 75 72 65 20 20 74 68 | to en|sure th|
|00003c40| 61 74 20 53 50 20 69 73 | 64 69 73 70 6c 61 79 65 |at SP is|displaye|
|00003c50| 64 2e 20 20 54 68 65 20 | 20 61 63 74 75 61 6c 20 |d. The | actual |
|00003c60| 20 76 61 6c 75 65 20 20 | 69 6e 20 74 68 65 20 20 | value |in the |
|00003c70| 53 50 72 65 67 69 73 74 | 65 72 20 69 73 20 20 69 |SPregist|er is i|
|00003c80| 6d 6d 61 74 65 72 69 61 | 6c 20 20 66 6f 72 20 20 |mmateria|l for |
|00003c90| 6d 6f 73 74 20 20 6f 66 | 20 69 74 73 61 70 70 6c |most of| itsappl|
|00003ca0| 69 63 61 74 69 6f 6e 73 | 2e a3 45 46 4d 20 22 20 |ications|..EFM " |
|00003cb0| 20 49 4e 43 20 44 45 a0 | 22 0d 44 45 46 4d 20 22 | INC DE.|".DEFM "|
|00003cc0| 20 20 49 4e 43 20 48 a0 | 22 0d 44 45 46 4d 20 22 | INC H.|".DEFM "|
|00003cd0| 20 20 44 4a 4e 5a 20 4c | 4f 4f 50 32 a0 22 0d 44 | DJNZ L|OOP2.".D|
|00003ce0| 45 46 4d 20 22 20 20 4c | 44 20 48 4c 2c 28 53 54 |EFM " L|D HL,(ST|
|00003cf0| 4f 52 45 29 a0 22 0d 44 | 45 46 4d 20 22 20 20 49 |ORE).".D|EFM " I|
|00003d00| 4e 43 20 48 4c a0 22 0d | 44 45 46 4d 20 22 20 20 |NC HL.".|DEFM " |
|00003d10| 4a 52 20 4c 4f 4f 50 31 | a0 22 0d 00 00 00 00 00 |JR LOOP1|."......|
|00003d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e10| 00 00 00 00 00 00 00 00 | 00 00 00 20 4c 44 20 48 |........|... LD H|
|00003e20| 4c 2c 35 36 37 38 39 a0 | 20 20 4c 44 20 44 45 2c |L,56789.| LD DE,|
|00003e30| 33 34 35 36 37 a0 20 20 | 4c 44 20 42 43 2c 31 32 |34567. |LD BC,12|
|00003e40| 33 34 35 a0 20 20 50 55 | 53 48 20 48 4c a0 20 20 |345. PU|SH HL. |
|00003e50| 50 55 53 48 20 42 43 a0 | 20 20 50 55 53 48 20 44 |PUSH BC.| PUSH D|
|00003e60| 45 a0 20 20 45 58 20 28 | 53 50 29 2c 48 4c a0 20 |E. EX (|SP),HL. |
|00003e70| 20 4c 44 20 42 43 2c 30 | a0 20 20 50 4f 50 20 44 | LD BC,0|. POP D|
|00003e80| 45 a0 20 20 50 4f 50 20 | 42 43 a0 20 20 50 4f 50 |E. POP |BC. POP|
|00003e90| 20 48 4c a0 20 20 52 45 | 54 a0 20 20 a0 20 20 49 | HL. RE|T. . I|
|00003ea0| 4e 43 20 53 50 a0 20 20 | a0 20 20 20 20 20 20 20 |NC SP. |. |
|00003eb0| 20 20 20 20 20 43 41 4c | 4c 53 20 54 4f 20 53 55 | CAL|LS TO SU|
|00003ec0| 42 52 4f 55 54 49 4e 45 | 53 a0 a0 20 41 20 73 75 |BROUTINE|S.. A su|
|00003ed0| 62 72 6f 75 74 69 6e 65 | 20 69 73 20 61 20 70 61 |broutine| is a pa|
|00003ee0| 72 74 20 6f 66 20 61 20 | 70 72 6f 67 72 61 6d 20 |rt of a |program |
|00003ef0| 20 74 68 61 74 69 73 20 | 20 63 61 6c 6c 65 64 20 | thatis | called |
|00003f00| 66 72 6f 6d 20 74 68 65 | 20 6d 61 69 6e 20 70 72 |from the| main pr|
|00003f10| 6f 67 72 61 6d 20 61 6e | 64 20 20 6f 6e 63 65 63 |ogram an|d oncec|
|00003f20| 6f 6d 70 6c 65 74 65 64 | 20 20 20 72 65 74 75 72 |ompleted| retur|
|00003f30| 6e 73 20 20 62 61 63 6b | 20 20 74 6f 20 20 20 74 |ns back| to t|
|00003f40| 68 65 20 20 20 6d 61 69 | 6e 70 72 6f 67 72 61 6d |he mai|nprogram|
|00003f50| 2e 20 20 54 68 65 20 73 | 75 62 72 6f 75 74 69 6e |. The s|ubroutin|
|00003f60| 65 20 69 73 20 75 73 75 | 61 6c 6c 79 20 63 61 6c |e is usu|ally cal|
|00003f70| 6c 65 64 66 72 6f 6d 20 | 61 20 6e 75 6d 62 65 72 |ledfrom |a number|
|00003f80| 20 6f 66 20 70 6c 61 63 | 65 73 20 69 6e 20 74 68 | of plac|es in th|
|00003f90| 65 20 70 72 6f 67 72 61 | 6d 2e a0 a0 20 54 68 65 |e progra|m... The|
|00003fa0| 20 20 20 5a 38 30 20 20 | 61 6c 6c 6f 77 73 20 20 | Z80 |allows |
|00003fb0| 74 68 69 73 20 20 66 65 | 61 74 75 72 65 20 20 62 |this fe|ature b|
|00003fc0| 79 20 20 74 68 65 69 6e | 73 74 72 75 63 74 69 6f |y thein|structio|
|00003fd0| 6e 20 43 41 4c 4c 2e 20 | 20 54 68 65 20 43 41 4c |n CALL. | The CAL|
|00003fe0| 4c 20 69 6e 73 74 72 75 | 63 74 69 6f 6e 20 69 73 |L instru|ction is|
|00003ff0| 73 69 6d 69 6c 61 72 20 | 74 6f 20 74 68 65 20 4a |similar |to the J|
|00004000| 50 20 69 6e 73 74 72 75 | 63 74 69 6f 6e 20 65 78 |P instru|ction ex|
|00004010| 63 65 70 74 20 20 74 68 | 61 74 74 68 65 20 20 20 |cept th|atthe |
|00004020| 61 64 64 72 65 73 73 20 | 20 6f 66 20 20 74 68 65 |address | of the|
|00004030| 20 20 20 6e 65 78 74 20 | 20 20 73 65 71 75 65 6e | next | sequen|
|00004040| 74 69 61 6c 69 6e 73 74 | 72 75 63 74 69 6f 6e 2c |tialinst|ruction,|
|00004050| 20 68 65 6c 64 20 69 6e | 20 74 68 65 20 20 50 43 | held in| the PC|
|00004060| 20 20 72 65 67 69 73 74 | 65 72 2c 20 69 73 50 55 | regist|er, isPU|
|00004070| 53 48 65 64 20 6f 6e 74 | 6f 20 74 68 65 20 53 74 |SHed ont|o the St|
|00004080| 61 63 6b 2c 20 70 72 69 | 6f 72 20 74 6f 20 74 68 |ack, pri|or to th|
|00004090| 65 20 6a 75 6d 70 2e a0 | a0 20 54 68 65 20 20 72 |e jump..|. The r|
|000040a0| 65 74 75 72 6e 20 20 69 | 6e 73 74 72 75 63 74 69 |eturn i|nstructi|
|000040b0| 6f 6e 20 20 52 45 54 2c | 20 20 50 4f 50 73 20 20 |on RET,| POPs |
|000040c0| 74 68 65 72 65 74 75 72 | 6e 20 61 64 64 72 65 73 |theretur|n addres|
|000040d0| 73 20 66 72 6f 6d 20 74 | 68 65 20 53 74 61 63 6b |s from t|he Stack|
|000040e0| 2c 20 20 62 61 63 6b 20 | 20 69 6e 74 6f 74 68 65 |, back | intothe|
|000040f0| 20 20 50 43 20 20 72 65 | 67 69 73 74 65 72 2c 20 | PC re|gister, |
|00004100| 20 74 6f 20 63 6f 6e 74 | 69 6e 75 65 20 77 68 65 | to cont|inue whe|
|00004110| 72 65 20 20 74 68 65 6d | 61 69 6e 20 70 72 6f 67 |re them|ain prog|
|00004120| 72 61 6d 20 6c 65 66 74 | 20 6f 66 66 2e 20 20 20 |ram left| off. |
|00004130| 49 66 20 74 68 65 20 20 | 6e 75 6d 62 65 72 20 6f |If the |number o|
|00004140| 66 50 55 53 48 65 73 20 | 20 61 6e 64 20 43 41 4c |fPUSHes | and CAL|
|00004150| 4c 73 20 69 6e 20 74 68 | 65 20 20 73 75 62 72 6f |Ls in th|e subro|
|00004160| 75 74 69 6e 65 20 20 64 | 6f 65 73 6e 6f 74 20 65 |utine d|oesnot e|
|00004170| 71 75 61 6c 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |qual the| number |
|00004180| 6f 66 20 20 50 4f 50 73 | 20 61 6e 64 20 52 45 54 |of POPs| and RET|
|00004190| 75 72 6e 73 2c 6f 62 76 | 69 6f 75 73 6c 79 20 74 |urns,obv|iously t|
|000041a0| 68 69 73 20 77 69 6c 6c | 20 6e 6f 74 20 68 61 70 |his will| not hap|
|000041b0| 70 65 6e 2e a3 20 42 6f | 74 68 20 63 6f 6e 64 69 |pen.. Bo|th condi|
|000041c0| 74 69 6f 6e 61 6c 20 61 | 6e 64 20 75 6e 63 6f 6e |tional a|nd uncon|
|000041d0| 64 69 74 69 6f 6e 61 6c | 20 20 43 41 4c 4c 73 61 |ditional| CALLsa|
|000041e0| 6e 64 20 52 45 54 75 72 | 6e 73 20 61 72 65 20 61 |nd RETur|ns are a|
|000041f0| 76 61 69 6c 61 62 6c 65 | 20 6f 6e 20 74 68 65 20 |vailable| on the |
|00004200| 5a 38 30 2e 20 20 41 6c | 6c 66 6f 75 72 20 20 20 |Z80. Al|lfour |
|00004210| 74 79 70 65 73 20 20 20 | 20 6f 66 20 20 20 63 6f |types | of co|
|00004220| 6e 64 69 74 69 6f 6e 73 | 20 20 20 20 61 6c 72 65 |nditions| alre|
|00004230| 61 64 79 63 6f 6e 73 69 | 64 65 72 65 64 20 20 28 |adyconsi|dered (|
|00004240| 20 4e 43 2c 20 43 2c 20 | 4e 5a 20 20 61 6e 64 20 | NC, C, |NZ and |
|00004250| 20 5a 20 29 20 20 63 61 | 6e 20 20 62 65 75 73 65 | Z ) ca|n beuse|
|00004260| 64 20 77 69 74 68 20 43 | 41 4c 4c 73 20 61 6e 64 |d with C|ALLs and|
|00004270| 20 52 45 54 75 72 6e 73 | 2e a3 20 53 75 6d 6d 61 | RETurns|.. Summa|
|00004280| 72 79 20 2d 20 63 61 6c | 6c 73 20 61 6e 64 20 72 |ry - cal|ls and r|
|00004290| 65 74 75 72 6e 73 a0 a0 | 20 20 20 43 41 4c 4c 20 |eturns..| CALL |
|000042a0| 4e 43 2c 6e 6e 20 20 20 | 20 20 20 52 45 54 20 4e |NC,nn | RET N|
|000042b0| 43 20 20 20 20 4e 6f 20 | 43 61 72 72 79 a0 a0 20 |C No |Carry.. |
|000042c0| 20 20 43 41 4c 4c 20 43 | 2c 6e 6e 20 20 20 20 20 | CALL C|,nn |
|000042d0| 20 20 52 45 54 20 43 20 | 20 20 20 20 43 61 72 72 | RET C | Carr|
|000042e0| 79 20 73 65 74 a0 a0 20 | 20 20 43 41 4c 4c 20 4e |y set.. | CALL N|
|000042f0| 5a 2c 6e 6e 20 20 20 20 | 20 20 52 45 54 20 4e 5a |Z,nn | RET NZ|
|00004300| 20 20 20 20 4e 6f 74 20 | 5a 65 72 6f a0 a0 20 20 | Not |Zero.. |
|00004310| 20 43 41 4c 4c 20 5a 2c | 6e 6e 20 20 20 20 20 20 | CALL Z,|nn |
|00004320| 20 52 45 54 20 5a 20 20 | 20 20 20 5a 65 72 6f 20 | RET Z | Zero |
|00004330| 73 65 74 a0 a0 20 49 66 | 20 74 68 65 20 63 6f 6e |set.. If| the con|
|00004340| 64 69 74 69 6f 6e 20 69 | 73 20 6e 6f 74 20 6d 65 |dition i|s not me|
|00004350| 74 2c 20 20 74 68 65 20 | 70 72 6f 67 72 61 6d 77 |t, the |programw|
|00004360| 69 6c 6c 20 20 6e 6f 74 | 20 20 43 41 4c 4c 20 74 |ill not| CALL t|
|00004370| 68 65 20 20 73 75 62 72 | 6f 75 74 69 6e 65 20 20 |he subr|outine |
|00004380| 6f 72 20 52 45 54 75 72 | 6e 66 72 6f 6d 20 69 74 |or RETur|nfrom it|
|00004390| 2e a3 20 20 20 20 20 20 | 45 58 41 4d 50 4c 45 20 |.. |EXAMPLE |
|000043a0| 4f 46 20 43 41 4c 4c 53 | 20 54 4f 20 53 55 42 52 |OF CALLS| TO SUBR|
|000043b0| 4f 55 54 49 4e 45 a0 a0 | 20 54 68 65 20 20 20 66 |OUTINE..| The f|
|000043c0| 69 72 73 74 20 20 65 78 | 61 6d 70 6c 65 20 20 73 |irst ex|ample s|
|000043d0| 68 6f 77 73 20 20 6e 65 | 73 74 69 6e 67 20 20 20 |hows ne|sting |
|000043e0| 6f 66 73 75 62 72 6f 75 | 74 69 6e 65 73 20 3a 20 |ofsubrou|tines : |
|000043f0| 20 61 20 73 75 62 72 6f | 75 74 69 6e 65 20 20 62 | a subro|utine b|
|00004400| 65 69 6e 67 20 20 63 61 | 6c 6c 65 64 66 72 6f 6d |eing ca|lledfrom|
|00004410| 20 77 69 74 68 69 6e 20 | 61 6e 6f 74 68 65 72 20 | within |another |
|00004420| 73 75 62 72 6f 75 74 69 | 6e 65 2e a0 a0 20 49 74 |subrouti|ne... It|
|00004430| 20 6d 75 73 74 20 62 65 | 20 72 65 6d 65 6d 62 65 | must be| remembe|
|00004440| 72 65 64 20 74 68 61 74 | 20 20 61 20 20 73 75 62 |red that| a sub|
|00004450| 72 6f 75 74 69 6e 65 6d | 61 79 20 20 72 65 71 75 |routinem|ay requ|
|00004460| 69 72 65 20 74 68 65 20 | 75 73 65 20 6f 66 20 61 |ire the |use of a|
|00004470| 20 20 72 65 67 69 73 74 | 65 72 20 20 77 68 6f 73 | regist|er whos|
|00004480| 65 63 6f 6e 74 65 6e 74 | 73 20 20 61 72 65 20 73 |econtent|s are s|
|00004490| 74 69 6c 6c 20 20 72 65 | 71 75 69 72 65 64 20 69 |till re|quired i|
|000044a0| 6e 20 74 68 65 20 20 6d | 61 69 6e 70 72 6f 67 72 |n the m|ainprogr|
|000044b0| 61 6d 2e 20 20 49 74 73 | 20 20 63 6f 6e 74 65 6e |am. Its| conten|
|000044c0| 74 73 20 6d 75 73 74 20 | 20 74 68 65 72 65 66 6f |ts must | therefo|
|000044d0| 72 65 20 62 65 50 55 53 | 48 65 64 20 20 6f 6e 74 |re bePUS|Hed ont|
|000044e0| 6f 20 74 68 65 20 73 74 | 61 63 6b 20 6f 72 20 6f |o the st|ack or o|
|000044f0| 74 68 65 72 77 69 73 65 | 20 73 74 6f 72 65 64 65 |therwise| storede|
|00004500| 6c 73 65 77 68 65 72 65 | 2c 20 61 6e 64 20 72 65 |lsewhere|, and re|
|00004510| 74 72 69 65 76 65 64 20 | 61 74 20 74 68 65 20 65 |trieved |at the e|
|00004520| 6e 64 20 6f 66 20 74 68 | 65 73 75 62 72 6f 75 74 |nd of th|esubrout|
|00004530| 69 6e 65 2e a3 20 4c 44 | 20 48 4c 2c 32 32 35 32 |ine.. LD| HL,2252|
|00004540| 38 a0 20 20 4c 44 20 42 | 2c 33 32 a0 20 20 43 41 |8. LD B|,32. CA|
|00004550| 4c 4c 20 53 52 31 a0 20 | 20 4c 44 20 48 4c 2c 53 |LL SR1. | LD HL,S|
|00004560| 54 4f 52 45 a0 20 53 52 | 32 20 20 20 4c 44 20 41 |TORE. SR|2 LD A|
|00004570| 2c 28 48 4c 29 a0 20 20 | 41 44 44 20 41 2c 31 32 |,(HL). |ADD A,12|
|00004580| 38 a0 20 20 4c 44 20 28 | 48 4c 29 2c 41 a0 20 20 |8. LD (|HL),A. |
|00004590| 52 45 54 a0 20 20 a0 20 | 53 52 31 20 20 20 43 41 |RET. . |SR1 CA|
|000045a0| 4c 4c 20 53 52 32 a0 20 | 20 49 4e 43 20 48 4c a0 |LL SR2. | INC HL.|
|000045b0| 20 20 44 4a 4e 5a 20 53 | 52 31 a0 20 20 52 45 54 | DJNZ S|R1. RET|
|000045c0| a0 20 53 54 4f 52 45 20 | 44 45 46 42 20 31 32 34 |. STORE |DEFB 124|
|000045d0| a0 20 20 a0 20 20 20 20 | 20 20 20 45 58 41 4d 50 |. . | EXAMP|
|000045e0| 4c 45 20 4f 46 20 43 4f | 4e 44 49 54 49 4f 4e 41 |LE OF CO|NDITIONA|
|000045f0| 4c 20 43 41 4c 4c 53 a0 | a0 20 54 68 69 73 20 73 |L CALLS.|. This s|
|00004600| 69 6d 70 6c 65 20 65 78 | 61 6d 70 6c 65 20 63 6f |imple ex|ample co|
|00004610| 75 6e 74 73 20 75 70 20 | 74 68 65 20 20 6e 75 6d |unts up |the num|
|00004620| 62 65 72 6f 66 20 6d 65 | 6d 6f 72 79 20 6c 6f 63 |berof me|mory loc|
|00004630| 61 74 69 6f 6e 73 20 68 | 6f 6c 64 69 6e 67 20 61 |ations h|olding a|
|00004640| 20 6e 75 6d 62 65 72 20 | 61 62 6f 76 65 31 39 32 | number |above192|
|00004650| 20 20 61 6e 64 20 62 65 | 6c 6f 77 20 20 36 34 20 | and be|low 64 |
|00004660| 69 6e 20 74 68 65 20 66 | 69 72 73 74 20 20 33 32 |in the f|irst 32|
|00004670| 20 6d 65 6d 6f 72 79 6c | 6f 63 61 74 69 6f 6e 73 | memoryl|ocations|
|00004680| 2e a3 a3 20 4c 44 20 48 | 4c 2c 30 a0 20 20 4c 44 |... LD H|L,0. LD|
|00004690| 20 44 45 2c 30 a0 20 20 | 4c 44 20 42 2c 33 32 a0 | DE,0. |LD B,32.|
|000046a0| 20 4c 4f 4f 50 20 20 4c | 44 20 41 2c 28 48 4c 29 | LOOP L|D A,(HL)|
|000046b0| a0 20 20 43 50 20 31 39 | 33 a0 20 20 43 41 4c 4c |. CP 19|3. CALL|
|000046c0| 20 4e 43 2c 41 42 4f 56 | 45 a0 20 20 43 50 20 36 | NC,ABOV|E. CP 6|
|000046d0| 34 a0 20 20 43 41 4c 4c | 20 43 2c 42 45 4c 4f 57 |4. CALL| C,BELOW|
|000046e0| a0 20 20 49 4e 43 20 48 | 4c a0 20 20 44 4a 4e 5a |. INC H|L. DJNZ|
|000046f0| 20 4c 4f 4f 50 a0 20 20 | 52 45 54 a0 20 41 42 4f | LOOP. |RET. ABO|
|00004700| 56 45 20 49 4e 43 20 45 | a0 20 20 52 45 54 a0 20 |VE INC E|. RET. |
|00004710| 42 45 4c 4f 57 20 49 4e | 43 20 44 a0 20 20 52 45 |BELOW IN|C D. RE|
|00004720| 54 a0 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |T. | |
|00004730| 20 4c 65 73 73 6f 6e 73 | 20 31 30 20 2d 20 31 37 | Lessons| 10 - 17|
|00004740| a0 a0 20 31 30 2e 20 43 | 6f 6e 64 69 74 69 6f 6e |.. 10. C|ondition|
|00004750| 61 6c 20 61 6e 64 20 75 | 6e 63 6f 6e 64 69 74 69 |al and u|nconditi|
|00004760| 6f 6e 61 6c 20 6a 75 6d | 70 73 a0 20 20 20 20 20 |onal jum|ps. |
|00004770| 20 20 20 20 20 20 45 78 | 20 2d 20 6a 75 6d 70 73 | Ex| - jumps|
|00004780| a0 20 31 31 2e 20 52 65 | 6c 61 74 69 76 65 20 6a |. 11. Re|lative j|
|00004790| 75 6d 70 73 a0 20 20 20 | 20 20 20 20 20 20 20 20 |umps. | |
|000047a0| 45 78 20 2d 20 72 65 6c | 61 74 69 76 65 20 6a 75 |Ex - rel|ative ju|
|000047b0| 6d 70 73 20 31 a0 20 20 | 20 20 20 20 20 20 20 20 |mps 1. | |
|000047c0| 20 45 78 20 2d 20 72 65 | 6c 61 74 69 76 65 20 6a | Ex - re|lative j|
|000047d0| 75 6d 70 73 20 32 a0 20 | 31 32 2e 20 54 68 65 20 |umps 2. |12. The |
|000047e0| 53 74 61 63 6b a0 20 20 | 20 20 20 20 20 20 20 20 |Stack. | |
|000047f0| 20 45 78 20 2d 20 70 75 | 73 68 65 73 20 61 6e 64 | Ex - pu|shes and|
|00004800| 20 70 6f 70 73 a0 20 31 | 33 2e 20 43 61 6c 6c 73 | pops. 1|3. Calls|
|00004810| 20 74 6f 20 73 75 62 72 | 6f 75 74 69 6e 65 73 a0 | to subr|outines.|
|00004820| 20 20 20 20 20 20 20 20 | 20 20 20 45 78 20 2d 20 | | Ex - |
|00004830| 75 6e 63 6f 6e 64 69 74 | 69 6f 6e 61 6c 20 63 61 |uncondit|ional ca|
|00004840| 6c 6c 73 20 26 20 72 65 | 74 73 20 20 20 20 20 20 |lls & re|ts |
|00004850| 20 20 20 20 20 45 78 20 | 2d 20 63 6f 6e 64 69 74 | Ex |- condit|
|00004860| 69 6f 6e 61 6c 20 63 61 | 6c 6c 73 a0 20 31 34 2e |ional ca|lls. 14.|
|00004870| 20 42 69 6e 61 72 79 20 | 6e 6f 74 61 74 69 6f 6e | Binary |notation|
|00004880| a0 20 20 20 20 20 20 20 | 20 20 20 20 45 78 20 2d |. | Ex -|
|00004890| 20 62 69 6e 61 72 79 20 | 6e 6f 74 61 74 69 6f 6e | binary |notation|
|000048a0| a0 20 31 35 2e 20 48 65 | 78 61 64 65 63 69 6d 61 |. 15. He|xadecima|
|000048b0| 6c 20 6e 6f 74 61 74 69 | 6f 6e a0 20 20 20 20 20 |l notati|on. |
|000048c0| 20 20 20 20 20 20 45 78 | 20 2d 20 68 65 78 20 6e | Ex| - hex n|
|000048d0| 6f 74 61 74 69 6f 6e a0 | 20 31 36 2e 20 42 69 6e |otation.| 16. Bin|
|000048e0| 61 72 79 20 43 6f 64 65 | 64 20 44 65 63 69 6d 61 |ary Code|d Decima|
|000048f0| 6c 20 6e 6f 74 61 74 69 | 6f 6e a0 20 20 20 20 20 |l notati|on. |
|00004900| 20 20 20 20 20 20 45 78 | 20 2d 20 42 43 44 20 6e | Ex| - BCD n|
|00004910| 6f 74 61 74 69 6f 6e a0 | 20 31 37 2e 20 50 6f 73 |otation.| 17. Pos|
|00004920| 69 74 69 76 65 20 61 6e | 64 20 6e 65 67 61 74 69 |itive an|d negati|
|00004930| 76 65 20 6e 6f 74 61 74 | 69 6f 6e a0 20 20 20 20 |ve notat|ion. |
|00004940| 20 20 20 20 20 20 20 45 | 78 20 2d 20 2b 76 65 20 | E|x - +ve |
|00004950| 61 6e 64 20 2d 76 65 20 | 6e 75 6d 62 65 72 73 a0 |and -ve |numbers.|
|00004960| 20 4c 6f 61 64 20 66 75 | 72 74 68 65 72 20 6c 65 | Load fu|rther le|
|00004970| 73 73 6f 6e 73 20 66 72 | 6f 6d 20 64 69 73 6b a3 |ssons fr|om disk.|
|00004980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 49 | | I|
|00004990| 4e 54 52 4f 44 55 43 54 | 49 4f 4e a0 a0 20 54 68 |NTRODUCT|ION.. Th|
|000049a0| 65 20 20 70 72 6f 63 65 | 73 73 6f 72 2c 20 20 75 |e proce|ssor, u|
|000049b0| 6e 64 65 72 20 20 74 68 | 65 20 20 70 72 6f 67 72 |nder th|e progr|
|000049c0| 61 6d 6d 65 72 27 73 64 | 69 72 65 63 74 69 6f 6e |ammer'sd|irection|
|000049d0| 2c 20 20 68 61 73 20 20 | 20 74 68 65 20 20 20 63 |, has | the c|
|000049e0| 61 70 61 63 69 74 79 20 | 20 74 6f 20 20 6d 61 6b |apacity | to mak|
|000049f0| 65 64 65 63 69 73 69 6f | 6e 73 2e 20 20 49 6e 20 |edecisio|ns. In |
|00004a00| 20 74 68 65 20 20 66 6f | 6c 6c 6f 77 69 6e 67 20 | the fo|llowing |
|00004a10| 20 6c 65 73 73 6f 6e 73 | 20 77 65 73 68 61 6c 6c | lessons| weshall|
|00004a20| 20 64 69 73 63 75 73 73 | 20 74 68 65 73 65 20 69 | discuss| these i|
|00004a30| 6e 73 74 72 75 63 74 69 | 6f 6e 73 20 74 68 61 74 |nstructi|ons that|
|00004a40| 20 6d 61 6b 65 61 20 63 | 6f 6d 70 75 74 65 72 20 | makea c|omputer |
|00004a50| 6d 6f 72 65 20 74 68 61 | 6e 20 6a 75 73 74 20 61 |more tha|n just a|
|00004a60| 20 63 61 6c 63 75 6c 61 | 74 6f 72 2e a0 a0 20 57 | calcula|tor... W|
|00004a70| 65 20 20 73 68 61 6c 6c | 20 20 74 68 65 6e 20 20 |e shall| then |
|00004a80| 6c 6f 6f 6b 20 61 74 20 | 20 6e 75 6d 62 65 72 73 |look at | numbers|
|00004a90| 20 68 65 6c 64 20 69 6e | 72 65 67 69 73 74 65 72 | held in|register|
|00004aa0| 73 20 69 6e 20 6d 6f 72 | 65 20 64 65 74 61 69 6c |s in mor|e detail|
|00004ab0| 2e a3 20 20 20 20 20 20 | 20 20 20 20 20 20 20 42 |.. | B|
|00004ac0| 49 4e 41 52 59 20 4e 4f | 54 41 54 49 4f 4e a0 a0 |INARY NO|TATION..|
|00004ad0| 20 49 66 20 77 65 20 77 | 65 72 65 20 74 6f 20 74 | If we w|ere to t|
|00004ae0| 61 6b 65 20 74 68 65 20 | 74 6f 70 20 6f 66 66 20 |ake the |top off |
|00004af0| 61 20 5a 38 30 20 63 68 | 69 70 61 6e 64 2c 20 75 |a Z80 ch|ipand, u|
|00004b00| 73 69 6e 67 20 61 20 70 | 6f 77 65 72 66 75 6c 20 |sing a p|owerful |
|00004b10| 20 6d 69 63 72 6f 73 63 | 6f 70 65 2c 20 6c 6f 6f | microsc|ope, loo|
|00004b20| 6b 20 61 74 61 20 72 65 | 67 69 73 74 65 72 2c 20 |k ata re|gister, |
|00004b30| 20 77 65 20 77 6f 75 6c | 64 20 73 65 65 20 74 68 | we woul|d see th|
|00004b40| 61 74 20 69 74 20 63 6f | 6e 73 69 73 74 73 6f 66 |at it co|nsistsof|
|00004b50| 20 38 20 63 65 6c 6c 73 | 2e 20 20 54 68 65 73 65 | 8 cells|. These|
|00004b60| 20 20 63 65 6c 6c 73 20 | 20 61 72 65 20 20 63 61 | cells | are ca|
|00004b70| 70 61 62 6c 65 20 6f 66 | 62 65 69 6e 67 20 20 20 |pable of|being |
|00004b80| 73 77 69 74 63 68 65 64 | 20 20 20 62 65 74 77 65 |switched| betwe|
|00004b90| 65 6e 20 20 74 77 6f 20 | 20 64 69 66 66 65 72 65 |en two | differe|
|00004ba0| 6e 74 73 74 61 74 65 73 | 2e 20 20 43 6f 6e 76 65 |ntstates|. Conve|
|00004bb0| 6e 74 69 6f 6e 61 6c 6c | 79 20 20 77 65 20 20 64 |ntionall|y we d|
|00004bc0| 65 73 69 67 6e 61 74 65 | 20 6f 6e 65 73 74 61 74 |esignate| onestat|
|00004bd0| 65 20 20 61 73 20 20 22 | 31 22 20 20 61 6e 64 20 |e as "|1" and |
|00004be0| 20 74 68 65 20 6f 74 68 | 65 72 20 61 73 20 22 30 | the oth|er as "0|
|00004bf0| 22 2e 20 54 68 65 70 61 | 74 74 65 72 6e 20 6f 66 |". Thepa|ttern of|
|00004c00| 20 31 27 73 20 20 61 6e | 64 20 30 27 73 20 20 63 | 1's an|d 0's c|
|00004c10| 6f 75 6c 64 20 62 65 20 | 31 30 31 31 31 30 30 30 |ould be |10111000|
|00004c20| 73 61 79 2e a0 a0 20 48 | 6f 77 20 20 64 6f 20 77 |say... H|ow do w|
|00004c30| 65 20 20 69 6e 74 65 72 | 70 72 65 74 20 74 68 69 |e inter|pret thi|
|00004c40| 73 20 70 61 74 74 65 72 | 6e 3f 20 20 20 54 68 65 |s patter|n? The|
|00004c50| 61 6d 73 77 65 72 20 69 | 73 2c 20 61 6e 79 77 61 |amswer i|s, anywa|
|00004c60| 79 20 77 65 20 6c 69 6b | 65 2e 20 20 49 6e 20 74 |y we lik|e. In t|
|00004c70| 68 69 73 20 6c 65 73 73 | 6f 6e 77 65 20 20 73 68 |his less|onwe sh|
|00004c80| 6f 77 20 20 20 74 68 61 | 74 20 20 74 68 69 73 20 |ow tha|t this |
|00004c90| 20 20 70 61 74 74 65 72 | 6e 20 20 63 6f 75 6c 64 | patter|n could|
|00004ca0| 20 20 62 65 31 38 34 2c | 20 2d 37 32 2c 20 42 38 | be184,| -72, B8|
|00004cb0| 48 2c 20 61 6e 64 20 65 | 76 65 6e 20 43 50 20 42 |H, and e|ven CP B|
|00004cc0| 2e 20 54 68 65 20 6f 6e | 6c 79 20 6f 6e 65 74 68 |. The on|ly oneth|
|00004cd0| 65 20 20 70 72 6f 63 65 | 73 73 6f 72 20 20 68 61 |e proce|ssor ha|
|00004ce0| 73 20 20 62 75 69 6c 74 | 20 20 69 6e 74 6f 20 69 |s built| into i|
|00004cf0| 74 20 69 73 20 74 68 65 | 6c 61 74 74 65 72 2e a3 |t is the|latter..|
|00004d00| 20 45 61 63 68 20 64 69 | 67 69 74 20 69 6e 20 61 | Each di|git in a|
|00004d10| 20 6e 75 6d 62 65 72 20 | 63 61 6e 20 20 62 65 20 | number |can be |
|00004d20| 63 6f 6e 73 69 64 65 72 | 65 64 74 6f 20 68 61 76 |consider|edto hav|
|00004d30| 65 20 61 20 77 65 69 67 | 68 74 69 6e 67 2e 20 20 |e a weig|hting. |
|00004d40| 46 6f 72 20 64 65 63 69 | 6d 61 6c 20 20 6e 75 6d |For deci|mal num|
|00004d50| 62 65 72 73 74 68 65 73 | 65 20 77 65 69 67 68 74 |bersthes|e weight|
|00004d60| 69 6e 67 73 20 61 72 65 | a0 20 20 44 69 67 69 74 |ings are|. Digit|
|00004d70| 20 20 20 20 20 20 33 20 | 20 20 20 32 20 20 20 20 | 3 | 2 |
|00004d80| 31 20 20 20 20 20 30 a0 | 20 20 20 20 20 20 20 20 |1 0.| |
|00004d90| 20 20 20 31 30 30 30 20 | 20 31 30 30 20 20 20 31 | 1000 | 100 1|
|00004da0| 30 20 20 20 20 31 a0 a0 | 20 73 69 6e 63 65 20 65 |0 1..| since e|
|00004db0| 61 63 68 20 20 64 69 67 | 69 74 20 20 63 61 6e 20 |ach dig|it can |
|00004dc0| 68 61 76 65 20 20 6f 6e | 65 20 20 6f 66 20 20 74 |have on|e of t|
|00004dd0| 65 6e 73 74 61 74 65 73 | 2c 20 64 65 73 69 67 6e |enstates|, design|
|00004de0| 61 74 65 64 20 30 20 2d | 20 39 2e a0 a0 20 49 6e |ated 0 -| 9... In|
|00004df0| 20 61 20 72 65 67 69 73 | 74 65 72 20 65 61 63 68 | a regis|ter each|
|00004e00| 20 64 69 67 69 74 20 20 | 6f 72 20 62 69 74 20 68 | digit |or bit h|
|00004e10| 61 73 20 6f 6e 6c 79 74 | 77 6f 20 73 74 61 74 65 |as onlyt|wo state|
|00004e20| 73 2e 20 54 68 65 72 65 | 66 6f 72 65 20 77 65 20 |s. There|fore we |
|00004e30| 63 61 6e 20 69 6e 74 65 | 72 70 72 65 74 20 74 68 |can inte|rpret th|
|00004e40| 65 64 69 67 69 74 73 20 | 61 73 20 68 61 76 69 6e |edigits |as havin|
|00004e50| 67 20 77 65 69 67 68 74 | 69 6e 67 73 20 6f 66 a0 |g weight|ings of.|
|00004e60| a0 20 62 69 74 20 20 20 | 20 37 20 20 20 36 20 20 |. bit | 7 6 |
|00004e70| 20 35 20 20 20 34 20 20 | 20 20 33 20 20 20 32 20 | 5 4 | 3 2 |
|00004e80| 20 20 31 20 20 20 30 a0 | 20 20 20 20 20 20 20 31 | 1 0.| 1|
|00004e90| 32 38 20 20 36 34 20 20 | 33 32 20 20 31 36 20 20 |28 64 |32 16 |
|00004ea0| 20 38 20 20 20 34 20 20 | 20 32 20 20 20 31 a0 a0 | 8 4 | 2 1..|
|00004eb0| 20 54 61 6b 69 6e 67 20 | 20 6f 75 72 20 20 6e 75 | Taking | our nu|
|00004ec0| 6d 62 65 72 20 31 30 31 | 31 31 30 30 30 20 20 66 |mber 101|11000 f|
|00004ed0| 6f 72 20 65 78 61 6d 70 | 6c 65 61 6e 64 20 20 20 |or examp|leand |
|00004ee0| 6e 6f 74 69 6e 67 20 20 | 20 74 68 61 74 20 20 20 |noting | that |
|00004ef0| 62 69 74 73 20 20 74 68 | 61 74 20 20 61 72 65 20 |bits th|at are |
|00004f00| 20 22 30 22 63 6f 6e 74 | 72 69 62 75 74 65 20 20 | "0"cont|ribute |
|00004f10| 6e 6f 74 68 69 6e 67 20 | 20 74 6f 20 20 74 68 65 |nothing | to the|
|00004f20| 20 20 6e 75 6d 62 65 72 | 2c 20 20 74 68 65 64 65 | number|, thede|
|00004f30| 63 69 6d 61 6c 20 65 71 | 75 69 76 61 6c 65 6e 74 |cimal eq|uivalent|
|00004f40| 20 6f 66 20 31 30 31 31 | 31 30 30 30 20 69 73 20 | of 1011|1000 is |
|00004f50| 67 69 76 65 6e 20 62 79 | a0 20 20 20 20 20 20 20 |given by|. |
|00004f60| 20 20 20 20 20 31 32 38 | 2b 33 32 2b 31 36 2b 38 | 128|+32+16+8|
|00004f70| 3d 31 38 34 2e a3 20 54 | 68 65 20 6d 61 78 69 6d |=184.. T|he maxim|
|00004f80| 75 6d 20 6e 75 6d 62 65 | 72 20 74 68 61 74 20 63 |um numbe|r that c|
|00004f90| 61 6e 20 62 65 20 68 65 | 6c 64 20 69 6e 20 61 6e |an be he|ld in an|
|00004fa0| 38 20 20 62 69 74 20 20 | 72 65 67 69 73 74 65 72 |8 bit |register|
|00004fb0| 20 20 69 73 a0 a0 20 20 | 20 20 20 20 20 20 20 20 | is.. | |
|00004fc0| 31 32 38 2b 36 34 2b 33 | 32 2b 31 36 2b 38 2b 34 |128+64+3|2+16+8+4|
|00004fd0| 2b 32 2b 31 3d 32 35 35 | a0 a0 54 68 69 73 20 69 |+2+1=255|..This i|
|00004fe0| 73 20 74 68 65 20 6e 75 | 6d 62 65 72 20 77 65 20 |s the nu|mber we |
|00004ff0| 20 6f 72 69 67 69 6e 61 | 6c 6c 79 20 20 61 73 73 | origina|lly ass|
|00005000| 75 6d 65 64 61 74 20 74 | 68 65 20 62 65 67 69 6e |umedat t|he begin|
|00005010| 6e 69 6e 67 20 6f 66 20 | 6f 75 72 20 64 69 73 63 |ning of |our disc|
|00005020| 75 73 73 69 6f 6e 2e a3 | 20 4a 75 73 74 20 20 61 |ussion..| Just a|
|00005030| 73 20 20 20 77 65 20 20 | 61 64 64 20 20 74 77 6f |s we |add two|
|00005040| 20 20 64 65 63 69 6d 61 | 6c 20 20 6e 75 6d 62 65 | decima|l numbe|
|00005050| 72 73 74 6f 67 65 74 68 | 65 72 2c 20 20 63 61 72 |rstogeth|er, car|
|00005060| 72 79 69 6e 67 20 6f 6e | 65 20 66 6f 72 77 61 72 |rying on|e forwar|
|00005070| 64 20 69 66 20 74 68 65 | 20 73 75 6d 6f 66 20 74 |d if the| sumof t|
|00005080| 77 6f 20 20 64 69 67 69 | 74 73 20 69 73 20 20 67 |wo digi|ts is g|
|00005090| 72 65 61 74 65 72 20 20 | 74 68 61 6e 20 39 2c 20 |reater |than 9, |
|000050a0| 77 65 20 63 61 6e 61 64 | 64 20 74 77 6f 20 20 62 |we canad|d two b|
|000050b0| 69 6e 61 72 79 20 6e 75 | 6d 62 65 72 73 2e 20 20 |inary nu|mbers. |
|000050c0| 49 66 20 20 74 68 65 20 | 20 73 75 6d 20 20 69 73 |If the | sum is|
|000050d0| 61 62 6f 76 65 20 6f 6e | 65 2c 20 61 20 6f 6e 65 |above on|e, a one|
|000050e0| 20 69 73 20 63 61 72 72 | 69 65 64 20 66 6f 72 77 | is carr|ied forw|
|000050f0| 61 72 64 2e a0 a0 69 2e | 65 2e 20 63 61 72 72 79 |ard...i.|e. carry|
|00005100| 20 20 20 27 20 27 20 20 | 20 27 20 27 20 20 20 20 | ' ' | ' ' |
|00005110| 20 20 a0 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | . | |
|00005120| 30 20 31 20 31 20 30 20 | 31 20 31 20 31 20 30 a0 |0 1 1 0 |1 1 1 0.|
|00005130| 20 20 20 20 20 20 20 20 | 20 20 2b 20 20 30 20 30 | | + 0 0|
|00005140| 20 31 20 30 20 30 20 31 | 20 30 20 31 a0 20 20 67 | 1 0 0 1| 0 1. g|
|00005150| 69 76 65 73 20 20 20 20 | 20 20 31 20 30 20 30 20 |ives | 1 0 0 |
|00005160| 31 20 30 20 30 20 31 20 | 31 a0 a0 20 53 69 6d 69 |1 0 0 1 |1.. Simi|
|00005170| 6c 61 72 20 77 65 20 63 | 61 6e 20 70 65 72 66 6f |lar we c|an perfo|
|00005180| 72 6d 20 73 75 62 74 72 | 61 63 74 69 6f 6e 2e a0 |rm subtr|action..|
|00005190| a0 69 2e 65 2e 20 62 6f | 72 72 6f 77 20 20 20 20 |.i.e. bo|rrow |
|000051a0| 30 20 31 20 31 20 32 20 | 20 20 30 20 32 a0 20 20 |0 1 1 2 | 0 2. |
|000051b0| 20 20 20 20 20 20 20 20 | 20 20 20 30 20 31 20 31 | | 0 1 1|
|000051c0| 20 30 20 30 20 31 20 31 | 20 30 a0 20 20 20 20 20 | 0 0 1 1| 0. |
|000051d0| 20 20 20 20 20 2d 20 20 | 30 20 30 20 31 20 30 20 | - |0 0 1 0 |
|000051e0| 31 20 31 20 30 20 31 a0 | 20 20 67 69 76 65 73 20 |1 1 0 1.| gives |
|000051f0| 20 20 20 20 20 30 20 30 | 20 31 20 31 20 31 20 30 | 0 0| 1 1 1 0|
|00005200| 20 30 20 31 a3 20 20 20 | 20 20 20 20 45 58 41 4d | 0 1. | EXAM|
|00005210| 50 4c 45 53 20 4f 46 20 | 42 49 4e 41 52 59 20 4e |PLES OF |BINARY N|
|00005220| 4f 54 41 54 49 4f 4e a0 | a0 20 54 68 65 20 61 73 |OTATION.|. The as|
|00005230| 73 65 6d 62 6c 65 72 2c | 20 77 69 74 68 69 6e 20 |sembler,| within |
|00005240| 74 68 69 73 20 74 75 74 | 6f 72 2c 20 68 61 73 20 |this tut|or, has |
|00005250| 6f 6e 65 69 6e 73 74 72 | 75 63 74 69 6f 6e 20 20 |oneinstr|uction |
|00005260| 20 6e 6f 74 20 20 6e 6f | 72 6d 61 6c 6c 79 20 20 | not no|rmally |
|00005270| 66 6f 75 6e 64 20 20 69 | 6e 20 20 61 6e 61 73 73 |found i|n anass|
|00005280| 65 6d 62 6c 65 72 2c 20 | 20 20 6e 61 6d 65 6c 79 |embler, | namely|
|00005290| 20 20 20 42 49 4e 2e 20 | 20 54 68 65 20 20 61 73 | BIN. | The as|
|000052a0| 73 65 6d 62 6c 65 72 61 | 6c 6c 6f 63 61 74 65 73 |semblera|llocates|
|000052b0| 20 6f 6e 65 20 6d 65 6d | 6f 72 79 20 6c 6f 63 61 | one mem|ory loca|
|000052c0| 74 69 6f 6e 20 74 6f 20 | 74 68 65 20 6c 69 6e 65 |tion to |the line|
|000052d0| 2c 77 68 69 63 68 20 20 | 77 6f 75 6c 64 20 20 6e |,which |would n|
|000052e0| 6f 72 6d 61 6c 6c 79 20 | 20 62 65 20 20 6c 61 62 |ormally | be lab|
|000052f0| 65 6c 6c 65 64 2e 20 20 | 20 49 74 63 6f 6e 73 74 |elled. | Itconst|
|00005300| 61 6e 74 6c 79 20 20 20 | 64 69 73 70 6c 61 79 73 |antly |displays|
|00005310| 20 20 74 68 69 73 20 20 | 20 6c 6f 63 61 74 69 6f | this | locatio|
|00005320| 6e 20 20 69 6e 62 69 6e | 61 72 79 20 66 6f 72 6d |n inbin|ary form|
|00005330| 2e 20 20 54 68 65 20 6e | 75 6d 62 65 72 20 20 61 |. The n|umber a|
|00005340| 66 74 65 72 20 42 49 4e | 20 69 73 20 74 68 65 6e |fter BIN| is then|
|00005350| 75 6d 62 65 72 20 20 20 | 69 6e 69 74 69 61 6c 6c |umber |initiall|
|00005360| 79 20 20 20 69 6e 73 65 | 72 74 65 64 20 20 20 69 |y inse|rted i|
|00005370| 6e 74 6f 20 20 20 74 68 | 65 6c 6f 63 61 74 69 6f |nto th|elocatio|
|00005380| 6e 2e a3 20 4c 44 20 48 | 4c 2c 53 54 4f 52 45 a0 |n.. LD H|L,STORE.|
|00005390| 20 4c 4f 4f 50 20 20 44 | 45 43 20 28 48 4c 29 a0 | LOOP D|EC (HL).|
|000053a0| 20 20 4a 52 20 4e 5a 2c | 4c 4f 4f 50 a0 20 20 4c | JR NZ,|LOOP. L|
|000053b0| 44 20 41 2c 28 4e 55 4d | 31 29 a0 20 20 4c 44 20 |D A,(NUM|1). LD |
|000053c0| 48 4c 2c 4e 55 4d 32 a0 | 20 20 41 44 44 20 41 2c |HL,NUM2.| ADD A,|
|000053d0| 28 48 4c 29 a0 20 20 4c | 44 20 28 41 4e 53 29 2c |(HL). L|D (ANS),|
|000053e0| 41 a0 20 20 52 45 54 a0 | 20 20 a0 20 53 54 4f 52 |A. RET.| . STOR|
|000053f0| 45 20 42 49 4e 20 31 35 | a0 20 20 a0 20 4e 55 4d |E BIN 15|. . NUM|
|00005400| 31 20 20 42 49 4e 20 38 | 31 a0 20 4e 55 4d 32 20 |1 BIN 8|1. NUM2 |
|00005410| 20 42 49 4e 20 39 35 a0 | 20 41 4e 53 20 20 20 42 | BIN 95.| ANS B|
|00005420| 49 4e 20 30 a0 20 20 a0 | 20 20 20 20 20 20 20 20 |IN 0. .| |
|00005430| 20 20 20 48 45 58 41 44 | 45 43 49 4d 41 4c 20 4e | HEXAD|ECIMAL N|
|00005440| 4f 54 41 54 49 4f 4e a0 | a0 20 42 69 6e 61 72 79 |OTATION.|. Binary|
|00005450| 20 20 6e 75 6d 62 65 72 | 73 20 20 61 72 65 20 74 | number|s are t|
|00005460| 6f 6f 20 20 63 75 6d 62 | 65 72 73 6f 6d 65 20 20 |oo cumb|ersome |
|00005470| 61 6e 64 64 65 63 69 6d | 61 6c 20 20 74 6f 6f 20 |anddecim|al too |
|00005480| 20 20 69 6e 63 6f 6e 76 | 65 6e 69 65 6e 74 20 20 | inconv|enient |
|00005490| 20 74 6f 20 20 20 64 69 | 73 70 6c 61 79 6d 75 6c | to di|splaymul|
|000054a0| 74 69 70 6c 65 20 20 72 | 65 67 69 73 74 65 72 20 |tiple r|egister |
|000054b0| 20 6e 75 6d 62 65 72 73 | 2e 20 20 20 41 20 6d 65 | numbers|. A me|
|000054c0| 74 68 6f 64 20 6f 66 70 | 72 65 73 65 6e 74 69 6e |thod ofp|resentin|
|000054d0| 67 20 20 20 62 69 6e 61 | 72 79 20 20 20 6e 75 6d |g bina|ry num|
|000054e0| 62 65 72 73 20 20 20 68 | 61 73 20 20 20 62 65 65 |bers h|as bee|
|000054f0| 6e 64 65 76 65 6c 6f 70 | 65 64 20 20 74 6f 20 20 |ndevelop|ed to |
|00005500| 67 65 74 20 20 72 6f 75 | 6e 64 20 20 74 68 65 73 |get rou|nd thes|
|00005510| 65 20 70 72 6f 62 6c 65 | 6d 73 2e 49 6e 73 74 65 |e proble|ms.Inste|
|00005520| 61 64 20 6f 66 20 20 62 | 61 73 69 6e 67 20 20 74 |ad of b|asing t|
|00005530| 68 65 20 6e 75 6d 62 65 | 72 20 6f 6e 20 31 30 20 |he numbe|r on 10 |
|00005540| 61 73 20 69 6e 64 65 63 | 69 6d 61 6c 20 6f 72 20 |as indec|imal or |
|00005550| 32 20 61 73 20 69 6e 20 | 62 69 6e 61 72 79 2c 20 |2 as in |binary, |
|00005560| 20 77 65 20 20 62 61 73 | 65 20 69 74 20 6f 6e 31 | we bas|e it on1|
|00005570| 36 2e 20 20 54 68 69 73 | 20 20 6e 75 6d 62 65 72 |6. This| number|
|00005580| 69 6e 67 20 20 20 73 79 | 73 74 65 6d 20 20 69 73 |ing sy|stem is|
|00005590| 20 20 20 63 61 6c 6c 65 | 64 48 65 78 61 64 65 63 | calle|dHexadec|
|000055a0| 69 6d 61 6c 2e a0 a0 20 | 57 65 20 20 72 65 71 75 |imal... |We requ|
|000055b0| 69 72 65 20 20 20 31 36 | 20 20 64 69 66 66 65 72 |ire 16| differ|
|000055c0| 65 6e 74 20 20 20 73 79 | 6d 62 6f 6c 73 20 20 74 |ent sy|mbols t|
|000055d0| 6f 72 65 70 72 65 73 65 | 6e 74 20 20 61 20 20 64 |oreprese|nt a d|
|000055e0| 69 67 69 74 2e 20 20 20 | 30 2d 39 20 20 67 69 76 |igit. |0-9 giv|
|000055f0| 65 73 20 20 75 73 20 20 | 74 68 65 66 69 72 73 74 |es us |thefirst|
|00005600| 20 20 31 30 20 20 61 6e | 64 20 20 41 2d 46 20 20 | 10 an|d A-F |
|00005610| 74 68 65 20 66 69 6e 61 | 6c 20 36 2e 20 20 20 41 |the fina|l 6. A|
|00005620| 20 6c 69 73 74 6f 66 20 | 20 20 64 65 63 69 6d 61 | listof | decima|
|00005630| 6c 2c 20 20 20 62 69 6e | 61 72 79 2c 20 20 61 6e |l, bin|ary, an|
|00005640| 64 20 20 20 68 65 78 61 | 64 65 63 69 6d 61 6c 65 |d hexa|decimale|
|00005650| 71 75 69 76 61 6c 65 6e | 74 73 20 20 61 72 65 20 |quivalen|ts are |
|00005660| 67 69 76 65 6e 20 6f 6e | 20 74 68 65 20 6e 65 78 |given on| the nex|
|00005670| 74 20 73 63 72 65 65 6e | 2e a3 20 20 20 20 44 65 |t screen|.. De|
|00005680| 63 69 6d 61 6c 20 20 20 | 42 69 6e 61 72 79 20 20 |cimal |Binary |
|00005690| 20 20 48 65 78 61 64 65 | 63 69 6d 61 6c a0 20 20 | Hexade|cimal. |
|000056a0| 20 20 20 20 20 30 20 20 | 20 20 20 20 20 30 30 30 | 0 | 000|
|000056b0| 30 20 20 20 20 20 20 20 | 20 20 30 a0 20 20 20 20 |0 | 0. |
|000056c0| 20 20 20 31 20 20 20 20 | 20 20 20 30 30 30 31 20 | 1 | 0001 |
|000056d0| 20 20 20 20 20 20 20 20 | 31 a0 20 20 20 20 20 20 | |1. |
|000056e0| 20 32 20 20 20 20 20 20 | 20 30 30 31 30 20 20 20 | 2 | 0010 |
|000056f0| 20 20 20 20 20 20 32 a0 | 20 20 20 20 20 20 20 33 | 2.| 3|
|00005700| 20 20 20 20 20 20 20 30 | 30 31 31 20 20 20 20 20 | 0|011 |
|00005710| 20 20 20 20 33 a0 20 20 | 20 20 20 20 20 34 20 20 | 3. | 4 |
|00005720| 20 20 20 20 20 30 31 30 | 30 20 20 20 20 20 20 20 | 010|0 |
|00005730| 20 20 34 a0 20 20 20 20 | 20 20 20 35 20 20 20 20 | 4. | 5 |
|00005740| 20 20 20 30 31 30 31 20 | 20 20 20 20 20 20 20 20 | 0101 | |
|00005750| 35 a0 20 20 20 20 20 20 | 20 36 20 20 20 20 20 20 |5. | 6 |
|00005760| 20 30 31 31 30 20 20 20 | 20 20 20 20 20 20 36 a0 | 0110 | 6.|
|00005770| 20 20 20 20 20 20 20 37 | 20 20 20 20 20 20 20 30 | 7| 0|
|00005780| 31 31 31 20 20 20 20 20 | 20 20 20 20 37 a0 20 20 |111 | 7. |
|00005790| 20 20 20 20 20 38 20 20 | 20 20 20 20 20 31 30 30 | 8 | 100|
|000057a0| 30 20 20 20 20 20 20 20 | 20 20 38 a0 20 20 20 20 |0 | 8. |
|000057b0| 20 20 20 39 20 20 20 20 | 20 20 20 31 30 30 31 20 | 9 | 1001 |
|000057c0| 20 20 20 20 20 20 20 20 | 39 a0 20 20 20 20 20 20 | |9. |
|000057d0| 20 31 30 20 20 20 20 20 | 20 31 30 31 30 20 20 20 | 10 | 1010 |
|000057e0| 20 20 20 20 20 20 41 a0 | 20 20 20 20 20 20 20 31 | A.| 1|
|000057f0| 31 20 20 20 20 20 20 31 | 30 31 31 20 20 20 20 20 |1 1|011 |
|00005800| 20 20 20 20 42 a0 20 20 | 20 20 20 20 20 31 32 20 | B. | 12 |
|00005810| 20 20 20 20 20 31 31 30 | 30 20 20 20 20 20 20 20 | 110|0 |
|00005820| 20 20 43 a0 20 20 20 20 | 20 20 20 31 33 20 20 20 | C. | 13 |
|00005830| 20 20 20 31 31 30 31 20 | 20 20 20 20 20 20 20 20 | 1101 | |
|00005840| 44 a0 20 20 20 20 20 20 | 20 31 34 20 20 20 20 20 |D. | 14 |
|00005850| 20 31 31 31 30 20 20 20 | 20 20 20 20 20 20 45 a0 | 1110 | E.|
|00005860| 20 20 20 20 20 20 20 31 | 35 20 20 20 20 20 20 31 | 1|5 1|
|00005870| 31 31 31 20 20 20 20 20 | 20 20 20 20 46 a3 20 41 |111 | F. A|
|00005880| 6c 6c 20 20 31 36 20 20 | 73 74 61 74 65 73 20 6f |ll 16 |states o|
|00005890| 66 20 20 74 68 65 20 34 | 20 62 69 6e 61 72 79 20 |f the 4| binary |
|000058a0| 62 69 74 73 20 61 72 65 | 63 6f 76 65 72 65 64 20 |bits are|covered |
|000058b0| 62 79 20 20 30 2d 46 2e | 20 20 48 65 6e 63 65 20 |by 0-F.| Hence |
|000058c0| 6f 6e 6c 79 20 32 20 68 | 65 78 61 64 65 63 69 6d |only 2 h|exadecim|
|000058d0| 61 6c 64 69 67 69 74 73 | 20 20 20 61 72 65 20 20 |aldigits| are |
|000058e0| 20 72 65 71 75 69 72 65 | 64 20 20 74 6f 20 20 64 | require|d to d|
|000058f0| 69 73 70 6c 61 79 20 20 | 20 74 68 65 63 6f 6e 74 |isplay | thecont|
|00005900| 65 6e 74 73 20 6f 66 20 | 61 6e 20 38 20 62 69 74 |ents of |an 8 bit|
|00005910| 20 72 65 67 69 73 74 65 | 72 2e 20 4f 75 72 20 65 | registe|r. Our e|
|00005920| 78 61 6d 70 6c 65 31 30 | 31 31 31 30 30 30 20 20 |xample10|111000 |
|00005930| 64 69 76 69 64 65 73 20 | 20 75 70 20 69 6e 74 6f |divides | up into|
|00005940| 20 20 31 30 31 31 20 20 | 31 30 30 30 20 20 6f 72 | 1011 |1000 or|
|00005950| 42 38 20 48 65 78 2e 20 | 20 41 20 20 64 6f 75 62 |B8 Hex. | A doub|
|00005960| 6c 65 20 20 72 65 67 69 | 73 74 65 72 20 20 68 6f |le regi|ster ho|
|00005970| 6c 64 69 6e 67 20 20 73 | 61 79 31 31 30 30 31 30 |lding s|ay110010|
|00005980| 30 31 20 31 30 31 31 31 | 30 30 30 20 20 77 69 6c |01 10111|000 wil|
|00005990| 6c 20 20 62 65 20 72 65 | 70 72 65 73 65 6e 74 65 |l be re|presente|
|000059a0| 64 20 62 79 43 39 42 38 | 20 68 65 78 2e a0 a0 20 |d byC9B8| hex... |
|000059b0| 43 6f 6e 76 65 72 73 69 | 6f 6e 20 6f 66 20 61 20 |Conversi|on of a |
|000059c0| 68 65 78 20 6e 75 6d 62 | 65 72 20 74 6f 20 69 74 |hex numb|er to it|
|000059d0| 73 20 64 65 63 69 6d 61 | 6c 65 71 75 69 76 61 6c |s decima|lequival|
|000059e0| 65 6e 74 20 20 20 20 20 | 66 6f 6c 6c 6f 77 73 20 |ent |follows |
|000059f0| 20 20 20 20 74 68 65 20 | 20 20 20 73 74 61 6e 64 | the | stand|
|00005a00| 61 72 64 63 61 6c 63 75 | 6c 61 74 69 6f 6e 2e a0 |ardcalcu|lation..|
|00005a10| a0 69 2e 65 2e 20 20 42 | 38 20 68 65 78 20 3d 20 |.i.e. B|8 hex = |
|00005a20| 28 42 20 68 65 78 29 2a | 20 31 36 2b 20 28 38 29 |(B hex)*| 16+ (8)|
|00005a30| 2a 20 31 a0 20 20 20 20 | 20 20 20 20 20 20 20 20 |* 1. | |
|00005a40| 20 3d 20 31 31 2a 31 36 | 2b 38 3d 31 38 34 a0 a0 | = 11*16|+8=184..|
|00005a50| 20 41 6c 77 61 79 73 20 | 20 72 65 6d 65 6d 62 65 | Always | remembe|
|00005a60| 72 20 74 68 61 74 20 61 | 20 68 65 78 20 20 6e 75 |r that a| hex nu|
|00005a70| 6d 62 65 72 20 68 61 73 | 20 61 62 61 73 65 20 6f |mber has| abase o|
|00005a80| 66 20 31 36 20 64 65 63 | 69 6d 61 6c 2c 20 61 20 |f 16 dec|imal, a |
|00005a90| 64 65 63 69 6d 61 6c 20 | 6e 75 6d 62 65 72 20 68 |decimal |number h|
|00005aa0| 61 73 20 61 62 61 73 65 | 20 6f 66 20 31 30 20 20 |as abase| of 10 |
|00005ab0| 61 6e 64 20 61 20 20 62 | 69 6e 61 72 79 20 6e 75 |and a b|inary nu|
|00005ac0| 6d 62 65 72 20 61 20 62 | 61 73 65 20 6f 66 32 2e |mber a b|ase of2.|
|00005ad0| a3 20 20 20 20 20 45 58 | 41 4d 50 4c 45 53 20 4f |. EX|AMPLES O|
|00005ae0| 46 20 48 45 58 41 44 45 | 43 49 4d 41 4c 20 4e 4f |F HEXADE|CIMAL NO|
|00005af0| 54 41 54 49 4f 4e a0 a0 | 20 4e 6f 77 20 74 68 61 |TATION..| Now tha|
|00005b00| 74 20 68 65 78 20 6e 6f | 74 61 74 69 6f 6e 20 68 |t hex no|tation h|
|00005b10| 61 73 20 62 65 65 6e 20 | 69 6e 74 72 6f 64 75 63 |as been |introduc|
|00005b20| 65 64 77 65 20 20 63 61 | 6e 20 20 64 69 73 63 75 |edwe ca|n discu|
|00005b30| 73 73 20 20 68 6f 77 20 | 20 74 68 65 20 63 6f 6d |ss how | the com|
|00005b40| 70 75 74 65 72 20 73 74 | 6f 72 65 73 70 72 6f 67 |puter st|oresprog|
|00005b50| 72 61 6d 73 20 20 69 6e | 20 20 6d 6f 72 65 20 20 |rams in| more |
|00005b60| 64 65 74 61 69 6c 2e 20 | 20 20 20 41 73 20 20 61 |detail. | As a|
|00005b70| 6c 72 65 61 64 79 6d 65 | 6e 74 69 6f 6e 65 64 2c |lreadyme|ntioned,|
|00005b80| 20 74 68 65 20 20 69 6e | 73 74 72 75 63 74 69 6f | the in|structio|
|00005b90| 6e 73 20 61 72 65 20 73 | 74 6f 72 65 64 20 69 6e |ns are s|tored in|
|00005ba0| 6d 65 6d 6f 72 79 20 61 | 73 20 6e 75 6d 62 65 72 |memory a|s number|
|00005bb0| 73 2e 20 20 53 6f 6d 65 | 20 69 6e 73 74 72 75 63 |s. Some| instruc|
|00005bc0| 74 69 6f 6e 73 20 6f 6e | 6c 79 72 65 71 75 69 72 |tions on|lyrequir|
|00005bd0| 65 20 61 20 73 69 6e 67 | 6c 65 20 20 6e 75 6d 62 |e a sing|le numb|
|00005be0| 65 72 2c 20 20 6f 74 68 | 65 72 73 20 20 72 65 71 |er, oth|ers req|
|00005bf0| 75 69 72 65 6d 6f 72 65 | 2e 20 20 43 6f 6c 75 6d |uiremore|. Colum|
|00005c00| 6e 20 32 20 20 6f 6e 20 | 20 74 68 65 20 53 69 6d |n 2 on | the Sim|
|00005c10| 75 6c 61 74 6f 72 20 64 | 69 73 70 6c 61 79 73 68 |ulator d|isplaysh|
|00005c20| 6f 77 73 20 20 20 74 68 | 65 20 20 20 6d 65 6d 6f |ows th|e memo|
|00005c30| 72 79 20 20 63 6f 6e 74 | 65 6e 74 73 20 20 20 66 |ry cont|ents f|
|00005c40| 6f 72 20 20 20 74 68 65 | 69 6e 73 74 72 75 63 74 |or the|instruct|
|00005c50| 69 6f 6e 73 20 69 6e 20 | 68 65 78 20 66 6f 72 6d |ions in |hex form|
|00005c60| 2e a0 a0 20 41 6c 6c 20 | 20 74 68 65 20 20 6e 75 |... All | the nu|
|00005c70| 6d 62 65 72 73 20 20 75 | 73 65 64 20 20 74 6f 20 |mbers u|sed to |
|00005c80| 20 64 65 73 63 72 69 62 | 65 20 20 61 6e 69 6e 73 | describ|e anins|
|00005c90| 74 72 75 63 74 69 6f 6e | 20 20 61 72 65 20 20 67 |truction| are g|
|00005ca0| 69 76 65 6e 20 69 6e 20 | 20 73 65 71 75 65 6e 63 |iven in | sequenc|
|00005cb0| 65 20 61 6c 6f 6e 67 74 | 68 65 20 6c 69 6e 65 2e |e alongt|he line.|
|00005cc0| 20 4e 6f 74 69 63 65 20 | 74 68 61 74 20 6e 75 6d | Notice |that num|
|00005cd0| 62 65 72 73 20 63 61 6c | 6c 65 64 20 75 70 20 69 |bers cal|led up i|
|00005ce0| 6e 61 6e 20 20 69 6e 73 | 74 72 75 63 74 69 6f 6e |nan ins|truction|
|00005cf0| 20 20 61 70 70 65 61 72 | 20 74 6f 77 61 72 64 73 | appear| towards|
|00005d00| 20 74 68 65 20 65 6e 64 | 20 6f 66 74 68 65 20 73 | the end| ofthe s|
|00005d10| 74 72 69 6e 67 20 6f 66 | 20 6e 75 6d 62 65 72 73 |tring of| numbers|
|00005d20| 2e 20 54 68 65 20 65 61 | 72 6c 69 65 72 20 6e 75 |. The ea|rlier nu|
|00005d30| 6d 62 65 72 73 64 65 74 | 65 72 6d 69 6e 65 20 74 |mbersdet|ermine t|
|00005d40| 68 65 20 74 79 70 65 20 | 6f 66 20 69 6e 73 74 72 |he type |of instr|
|00005d50| 75 63 74 69 6f 6e 2e 20 | 20 20 53 69 6e 63 65 74 |uction. | Sincet|
|00005d60| 68 65 20 20 74 6f 74 61 | 6c 20 20 6e 75 6d 62 65 |he tota|l numbe|
|00005d70| 72 20 6f 66 20 20 69 6e | 73 74 72 75 63 74 69 6f |r of in|structio|
|00005d80| 6e 73 20 65 78 63 65 65 | 64 32 35 36 2c 20 61 20 |ns excee|d256, a |
|00005d90| 20 70 72 65 66 69 78 20 | 20 6e 75 6d 62 65 72 20 | prefix | number |
|00005da0| 20 69 73 20 75 73 65 64 | 20 74 6f 20 70 72 6f 64 | is used| to prod|
|00005db0| 75 63 65 6f 74 68 65 72 | 20 73 65 74 73 20 6f 66 |uceother| sets of|
|00005dc0| 20 69 6e 73 74 72 75 63 | 74 69 6f 6e 73 2e 20 20 | instruc|tions. |
|00005dd0| 20 54 68 65 20 70 72 65 | 66 69 78 65 73 79 6f 75 | The pre|fixesyou|
|00005de0| 20 77 69 6c 6c 20 66 69 | 6e 64 20 61 72 65 20 45 | will fi|nd are E|
|00005df0| 44 48 2c 20 43 42 48 2c | 20 44 44 48 20 61 6e 64 |DH, CBH,| DDH and|
|00005e00| 20 46 44 48 2e a3 20 4c | 75 63 6b 69 6c 79 20 20 | FDH.. L|uckily |
|00005e10| 61 73 73 65 6d 62 6c 65 | 72 73 20 20 74 61 6b 65 |assemble|rs take|
|00005e20| 73 20 61 63 63 6f 75 6e | 74 20 6f 66 20 61 6c 6c |s accoun|t of all|
|00005e30| 74 68 65 73 65 20 20 63 | 6f 6d 70 6c 65 78 69 74 |these c|omplexit|
|00005e40| 69 65 73 2c 20 20 61 6e | 64 20 20 79 6f 75 20 77 |ies, an|d you w|
|00005e50| 69 6c 6c 20 6e 6f 74 20 | 62 65 72 65 71 75 69 72 |ill not |berequir|
|00005e60| 65 64 20 20 20 20 74 6f | 20 20 20 6c 65 61 72 6e |ed to| learn|
|00005e70| 20 20 20 74 68 65 20 20 | 20 74 61 62 6c 65 73 20 | the | tables |
|00005e80| 20 20 69 6e 41 70 70 65 | 6e 64 69 78 20 41 20 6f | inAppe|ndix A o|
|00005e90| 66 20 79 6f 75 72 20 53 | 70 65 63 74 72 75 6d 20 |f your S|pectrum |
|00005ea0| 4d 61 6e 75 61 6c 2e a0 | a0 20 54 68 65 20 20 53 |Manual..|. The S|
|00005eb0| 69 6d 75 6c 61 74 6f 72 | 20 20 63 61 6e 20 20 62 |imulator| can b|
|00005ec0| 65 20 20 73 77 69 74 63 | 68 65 64 20 62 65 74 77 |e switc|hed betw|
|00005ed0| 65 65 6e 64 65 63 69 6d | 61 6c 20 20 20 61 6e 64 |eendecim|al and|
|00005ee0| 20 20 20 68 65 78 61 64 | 65 63 69 6d 61 6c 20 20 | hexad|ecimal |
|00005ef0| 20 64 69 73 70 6c 61 79 | 20 20 20 62 79 70 72 65 | display| bypre|
|00005f00| 73 73 69 6e 67 20 20 22 | 67 22 2c 20 20 77 68 65 |ssing "|g", whe|
|00005f10| 6e 20 20 61 20 20 70 72 | 6f 67 72 61 6d 20 20 69 |n a pr|ogram i|
|00005f20| 73 20 20 20 6e 6f 74 72 | 75 6e 6e 69 6e 67 2e a3 |s notr|unning..|
|00005f30| 20 4c 44 20 41 2c 32 35 | 48 a0 20 20 41 44 44 20 | LD A,25|H. ADD |
|00005f40| 41 2c 41 a0 20 20 44 41 | 41 a0 20 20 4c 44 20 48 |A,A. DA|A. LD H|
|00005f50| 4c 2c 34 35 38 39 48 a0 | 20 20 4c 44 20 44 45 2c |L,4589H.| LD DE,|
|00005f60| 33 38 31 32 48 a0 20 20 | 4c 44 20 41 2c 4c a0 20 |3812H. |LD A,L. |
|00005f70| 20 53 55 42 20 45 a0 20 | 20 44 41 41 a0 20 20 4c | SUB E. | DAA. L|
|00005f80| 44 20 4c 2c 41 a0 20 20 | 4c 44 20 41 2c 48 a0 20 |D L,A. |LD A,H. |
|00005f90| 20 53 42 43 20 41 2c 44 | a0 20 20 44 41 41 a0 20 | SBC A,D|. DAA. |
|00005fa0| 20 4c 44 20 48 2c 41 a0 | 20 20 52 45 54 a0 20 20 | LD H,A.| RET. |
|00005fb0| a0 20 20 20 20 20 20 20 | 42 49 4e 41 52 59 20 43 |. |BINARY C|
|00005fc0| 4f 44 45 44 20 44 45 43 | 49 4d 41 4c 20 4e 4f 54 |ODED DEC|IMAL NOT|
|00005fd0| 41 54 49 4f 4e a0 a0 20 | 57 65 20 77 6f 75 6c 64 |ATION.. |We would|
|00005fe0| 20 73 74 69 6c 6c 20 6c | 69 6b 65 20 74 6f 20 62 | still l|ike to b|
|00005ff0| 65 20 61 62 6c 65 20 74 | 6f 20 70 65 72 66 6f 72 |e able t|o perfor|
|00006000| 6d 63 61 6c 63 75 6c 61 | 74 69 6f 6e 73 20 20 6f |mcalcula|tions o|
|00006010| 6e 20 20 64 65 63 69 6d | 61 6c 20 20 6e 75 6d 62 |n decim|al numb|
|00006020| 65 72 73 20 77 69 74 68 | 6f 75 74 68 61 76 69 6e |ers with|outhavin|
|00006030| 67 20 74 6f 20 63 6f 6e | 76 65 72 74 20 74 6f 20 |g to con|vert to |
|00006040| 62 69 6e 61 72 79 20 6f | 72 20 68 65 78 61 64 65 |binary o|r hexade|
|00006050| 63 69 6d 61 6c 66 6f 72 | 6d 2e 20 20 48 65 78 69 |cimalfor|m. Hexi|
|00006060| 64 65 63 69 6d 61 6c 20 | 66 6f 72 6d 20 20 68 6f |decimal |form ho|
|00006070| 6c 64 73 20 20 61 20 6b | 65 79 20 74 6f 20 61 6d |lds a k|ey to am|
|00006080| 65 74 68 6f 64 20 6f 66 | 20 61 63 68 69 65 76 69 |ethod of| achievi|
|00006090| 6e 67 20 74 68 69 73 2e | a0 a0 20 54 68 65 20 20 |ng this.|.. The |
|000060a0| 68 65 78 20 20 64 69 67 | 69 74 20 20 72 65 71 75 |hex dig|it requ|
|000060b0| 69 72 65 73 20 20 61 64 | 6a 75 73 74 6d 65 6e 74 |ires ad|justment|
|000060c0| 20 20 74 6f 61 76 6f 69 | 64 20 74 68 65 20 64 69 | toavoi|d the di|
|000060d0| 67 69 74 73 20 20 41 2d | 46 2e 20 20 41 64 64 69 |gits A-|F. Addi|
|000060e0| 6e 67 20 20 36 20 20 74 | 6f 20 20 74 68 65 64 69 |ng 6 t|o thedi|
|000060f0| 67 69 74 2c 20 69 66 20 | 74 68 65 73 65 20 73 79 |git, if |these sy|
|00006100| 6d 62 6f 6c 73 20 61 70 | 70 65 61 72 2c 20 72 65 |mbols ap|pear, re|
|00006110| 73 75 6c 74 73 20 69 6e | 63 6f 72 72 65 63 74 20 |sults in|correct |
|00006120| 61 64 6a 75 73 74 6d 65 | 6e 74 2e a0 a0 20 54 61 |adjustme|nt... Ta|
|00006130| 6b 65 20 74 68 65 20 68 | 65 78 20 6e 75 6d 62 65 |ke the h|ex numbe|
|00006140| 72 20 43 20 28 3d 20 31 | 32 20 64 65 63 2e 29 2e |r C (= 1|2 dec.).|
|00006150| 20 41 64 64 69 6e 67 36 | 20 67 69 76 65 73 20 31 | Adding6| gives 1|
|00006160| 38 20 64 65 63 69 6d 61 | 6c 20 6f 72 20 31 32 20 |8 decima|l or 12 |
|00006170| 68 65 78 2e 20 20 20 48 | 65 6e 63 65 20 20 74 68 |hex. H|ence th|
|00006180| 65 68 65 78 20 6e 75 6d | 62 65 72 20 6c 6f 6f 6b |ehex num|ber look|
|00006190| 73 20 20 69 64 65 6e 74 | 69 63 61 6c 20 74 6f 20 |s ident|ical to |
|000061a0| 74 68 65 20 64 65 63 69 | 6d 61 6c 61 6e 73 77 65 |the deci|malanswe|
|000061b0| 72 20 72 65 71 75 69 72 | 65 64 2e a3 20 45 61 63 |r requir|ed.. Eac|
|000061c0| 68 20 20 64 69 67 69 74 | 20 20 69 73 20 20 68 65 |h digit| is he|
|000061d0| 6c 64 20 20 69 6e 20 20 | 34 20 20 62 69 74 73 20 |ld in |4 bits |
|000061e0| 6f 66 20 74 68 65 72 65 | 67 69 73 74 65 72 2e 20 |of there|gister. |
|000061f0| 20 20 54 68 65 73 65 20 | 20 34 20 20 62 69 74 73 | These | 4 bits|
|00006200| 20 20 61 72 65 20 20 63 | 61 6c 6c 65 64 20 20 61 | are c|alled a|
|00006210| 6e 69 62 62 6c 65 2c 20 | 20 74 68 65 20 77 68 6f |nibble, | the who|
|00006220| 6c 65 20 20 38 20 62 69 | 74 20 77 6f 72 64 20 69 |le 8 bi|t word i|
|00006230| 73 20 74 65 72 6d 65 64 | 20 61 62 79 74 65 2e 20 |s termed| abyte. |
|00006240| 20 20 57 68 6f 20 73 61 | 69 64 20 70 72 6f 67 72 | Who sa|id progr|
|00006250| 61 6d 6d 65 72 73 20 68 | 61 76 65 20 6e 6f 20 73 |ammers h|ave no s|
|00006260| 65 6e 73 65 6f 66 20 68 | 75 6d 6f 75 72 3f a0 a0 |enseof h|umour?..|
|00006270| 20 54 68 69 73 20 70 72 | 65 73 65 6e 74 61 74 69 | This pr|esentati|
|00006280| 6f 6e 20 69 73 20 74 65 | 72 6d 65 64 20 20 42 69 |on is te|rmed Bi|
|00006290| 6e 61 72 79 20 43 6f 64 | 65 64 44 65 63 69 6d 61 |nary Cod|edDecima|
|000062a0| 6c 20 6f 72 20 42 43 44 | 2e a0 a0 20 54 68 65 20 |l or BCD|... The |
|000062b0| 20 20 5a 38 30 20 20 20 | 20 61 63 63 6f 6d 6d 6f | Z80 | accommo|
|000062c0| 64 61 74 65 73 20 20 20 | 20 74 68 65 20 20 20 20 |dates | the |
|000062d0| 61 62 6f 76 65 61 64 6a | 75 73 74 6d 65 6e 74 2c |aboveadj|ustment,|
|000062e0| 20 20 77 69 74 68 20 20 | 74 68 65 20 20 69 6e 73 | with |the ins|
|000062f0| 74 72 75 63 74 69 6f 6e | 20 20 20 44 41 41 2c 44 |truction| DAA,D|
|00006300| 65 63 69 6d 61 6c 20 20 | 20 20 41 64 6a 75 73 74 |ecimal | Adjust|
|00006310| 20 20 20 20 41 63 63 75 | 6d 75 6c 61 74 6f 72 2e | Accu|mulator.|
|00006320| 20 20 20 20 20 54 68 69 | 73 69 6e 73 74 72 75 63 | Thi|sinstruc|
|00006330| 74 69 6f 6e 20 69 73 20 | 75 73 65 64 20 61 66 74 |tion is |used aft|
|00006340| 65 72 20 20 61 6e 20 20 | 38 20 20 62 69 74 20 41 |er an |8 bit A|
|00006350| 44 44 2c 41 44 43 2c 20 | 53 55 42 2c 20 6f 72 20 |DD,ADC, |SUB, or |
|00006360| 53 42 43 20 74 6f 20 61 | 64 6a 75 73 74 20 74 68 |SBC to a|djust th|
|00006370| 65 20 41 63 63 75 6d 75 | 6c 61 74 6f 72 63 6f 6e |e Accumu|latorcon|
|00006380| 74 65 6e 74 73 20 20 62 | 79 20 20 61 64 64 69 6e |tents b|y addin|
|00006390| 67 20 20 36 20 20 74 6f | 20 74 68 65 20 6e 69 62 |g 6 to| the nib|
|000063a0| 62 6c 65 2c 20 69 66 65 | 69 74 68 65 72 20 6e 69 |ble, ife|ither ni|
|000063b0| 62 62 6c 65 20 69 6e 20 | 74 68 65 20 61 6e 73 77 |bble in |the answ|
|000063c0| 65 72 20 69 73 20 61 62 | 6f 76 65 20 39 2e a3 20 |er is ab|ove 9.. |
|000063d0| 54 6f 20 70 65 72 66 6f | 72 6d 20 20 74 68 69 73 |To perfo|rm this|
|000063e0| 20 20 6f 70 65 72 61 74 | 69 6f 6e 20 20 74 68 65 | operat|ion the|
|000063f0| 20 5a 38 30 20 75 73 65 | 73 74 77 6f 20 20 66 75 | Z80 use|stwo fu|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.